35 references to JsonSchema
System.Text.Json (35)
System\Text\Json\Schema\JsonSchema.cs (2)
283
schema = new
JsonSchema
{ Not = CreateTrueSchema() };
286
schema = new
JsonSchema
();
System\Text\Json\Schema\JsonSchemaExporter.cs (9)
77
return CompleteSchema(ref state, new
JsonSchema
{ Ref = existingJsonPointer });
121
JsonSchema discriminatorSchema =
new
() { Constant = discriminatorNode };
172
return CompleteSchema(ref state,
new
()
275
return CompleteSchema(ref state,
new
()
292
return CompleteSchema(ref state,
new
()
316
return CompleteSchema(ref state,
new
()
323
new
JsonSchema
()
353
return CompleteSchema(ref state,
new
()
410
return CompleteSchema(ref state,
new
()
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
67
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.Array };
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
116
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.Object };
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (1)
41
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.Boolean };
System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs (1)
32
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String, ContentEncoding = "base64" };
System\Text\Json\Serialization\Converters\Value\CharConverter.cs (1)
65
new
() { Type = JsonSchemaType.String, MinLength = 1, MaxLength = 1 };
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (1)
81
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String, Format = "date" };
System\Text\Json\Serialization\Converters\Value\DateTimeConverter.cs (1)
32
internal override JsonSchema? GetSchema(JsonNumberHandling _) => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "date-time" };
System\Text\Json\Serialization\Converters\Value\DateTimeOffsetConverter.cs (1)
32
internal override JsonSchema? GetSchema(JsonNumberHandling _) => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "date-time" };
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
499
return
new
() { Type = JsonSchemaType.String };
508
return
new
() { Enum = enumValues };
511
return
new
() { Type = JsonSchemaType.Integer };
System\Text\Json\Serialization\Converters\Value\GuidConverter.cs (1)
34
new
() { Type = JsonSchemaType.String, Format = "uuid" };
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (4)
59
return new
JsonSchema
63
new
JsonSchema
{ Type = schemaType, Pattern = pattern },
64
new
JsonSchema
{ Enum = [(JsonNode)"NaN", (JsonNode)"Infinity", (JsonNode)"-Infinity"] },
69
return new
JsonSchema
{ Type = schemaType, Pattern = pattern };
System\Text\Json\Serialization\Converters\Value\MemoryByteConverter.cs (1)
23
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String, ContentEncoding = "base64" };
System\Text\Json\Serialization\Converters\Value\ReadOnlyMemoryByteConverter.cs (1)
23
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String, ContentEncoding = "base64" };
System\Text\Json\Serialization\Converters\Value\StringConverter.cs (1)
53
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String };
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (1)
99
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
() { Type = JsonSchemaType.String, Format = "time" };
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (1)
97
internal override JsonSchema? GetSchema(JsonNumberHandling _) =>
new
()
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs (1)
24
new
JsonSchema
{ Comment = "Unsupported .NET type", Not = JsonSchema.CreateTrueSchema() };
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
54
new
() { Type = JsonSchemaType.String, Format = "uri" };
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
137
new
()