26 writes to Type
Shared (26)
JsonSchemaExporter\JsonSchemaExporter.cs (25)
198
derivedSchema.
Type
= JsonSchemaType.Any;
212
Type
= schemaType,
339
Type
= JsonSchemaType.Object,
357
Type
= JsonSchemaType.Array,
381
Type
= JsonSchemaType.Object,
388
Type
= JsonSchemaType.Array,
419
Type
= JsonSchemaType.Object,
586
[typeof(bool)] = _ => new JsonSchema {
Type
= JsonSchemaType.Boolean },
605
[typeof(char)] = _ => new JsonSchema {
Type
= JsonSchemaType.String, MinLength = 1, MaxLength = 1 },
606
[typeof(string)] = _ => new JsonSchema {
Type
= JsonSchemaType.String },
607
[typeof(byte[])] = _ => new JsonSchema {
Type
= JsonSchemaType.String },
608
[typeof(Memory<byte>)] = _ => new JsonSchema {
Type
= JsonSchemaType.String },
609
[typeof(ReadOnlyMemory<byte>)] = _ => new JsonSchema {
Type
= JsonSchemaType.String },
610
[typeof(DateTime)] = _ => new JsonSchema {
Type
= JsonSchemaType.String, Format = "date-time" },
611
[typeof(DateTimeOffset)] = _ => new JsonSchema {
Type
= JsonSchemaType.String, Format = "date-time" },
615
Type
= JsonSchemaType.String,
623
[typeof(Guid)] = _ => new JsonSchema {
Type
= JsonSchemaType.String, Format = "uuid" },
624
[typeof(Uri)] = _ => new JsonSchema {
Type
= JsonSchemaType.String, Format = "uri" },
628
Type
= JsonSchemaType.String,
636
[typeof(JsonObject)] = _ => new JsonSchema {
Type
= JsonSchemaType.Object },
637
[typeof(JsonArray)] = _ => new JsonSchema {
Type
= JsonSchemaType.Array },
672
new JsonSchema {
Type
= schemaType, Pattern = pattern },
678
return new JsonSchema {
Type
= schemaType, Pattern = pattern };
753
return new() {
Type
= JsonSchemaType.String };
768
return new() {
Type
= JsonSchemaType.Integer };
JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (1)
323
Type
|= JsonSchemaType.Null;
5 references to Type
Shared (5)
JsonSchemaExporter\JsonSchemaExporter.cs (2)
180
schemaType = derivedSchema.
Type
;
182
else if (schemaType != derivedSchema.
Type
)
JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (3)
293
Count(
Type
!= JsonSchemaType.Any);
321
if (
Type
!= JsonSchemaType.Any)
361
if (MapSchemaType(
Type
) is JsonNode type)