32 writes to Type
System.Text.Json (32)
System\Text\Json\Schema\JsonSchema.cs (1)
147
Type
|= JsonSchemaType.Null;
System\Text\Json\Schema\JsonSchemaExporter.cs (11)
159
derivedSchema.
Type
= JsonSchemaType.Any;
173
Type
= schemaType,
200
branch.
Type
|= JsonSchemaType.Null;
276
Type
= JsonSchemaType.Object,
293
Type
= JsonSchemaType.Array,
317
Type
= JsonSchemaType.Object,
324
Type
= JsonSchemaType.Array,
354
Type
= JsonSchemaType.Object,
378
caseSchema.
Type
|= JsonSchemaType.Null;
399
caseSchema.
Type
= JsonSchemaType.Any;
411
Type
= unionSchemaType,
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 };
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 (2)
499
return new() {
Type
= JsonSchemaType.String };
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 (2)
59
new JsonSchema {
Type
= schemaType, Pattern = pattern },
65
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 };
System\Text\Json\Serialization\Converters\Value\ReadOnlyMemoryByteConverter.cs (1)
23
internal override JsonSchema? GetSchema(JsonNumberHandling _) => new() {
Type
= JsonSchemaType.String };
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)
99
Type
= JsonSchemaType.String,
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)
139
Type
= JsonSchemaType.String,
9 references to Type
System.Text.Json (9)
System\Text\Json\Schema\JsonSchema.cs (3)
113
Count(
Type
!= JsonSchemaType.Any);
145
if (
Type
!= JsonSchemaType.Any)
170
if (MapSchemaType(
Type
) is JsonNode type)
System\Text\Json\Schema\JsonSchemaExporter.cs (6)
141
schemaType = derivedSchema.
Type
;
143
else if (schemaType != derivedSchema.
Type
)
193
Debug.Assert(anyOf.Exists(b => (b.
Type
& JsonSchemaType.Number) != 0),
198
if ((branch.
Type
& JsonSchemaType.Number) != 0)
383
unionSchemaType = caseSchema.
Type
;
385
else if (unionSchemaType != caseSchema.
Type
)