26 writes to Type
Shared (26)
JsonSchemaExporter\JsonSchemaExporter.cs (25)
198derivedSchema.Type = JsonSchemaType.Any; 212Type = schemaType, 339Type = JsonSchemaType.Object, 357Type = JsonSchemaType.Array, 381Type = JsonSchemaType.Object, 388Type = JsonSchemaType.Array, 419Type = 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" }, 615Type = JsonSchemaType.String, 623[typeof(Guid)] = _ => new JsonSchema { Type = JsonSchemaType.String, Format = "uuid" }, 624[typeof(Uri)] = _ => new JsonSchema { Type = JsonSchemaType.String, Format = "uri" }, 628Type = JsonSchemaType.String, 636[typeof(JsonObject)] = _ => new JsonSchema { Type = JsonSchemaType.Object }, 637[typeof(JsonArray)] = _ => new JsonSchema { Type = JsonSchemaType.Array }, 672new JsonSchema { Type = schemaType, Pattern = pattern }, 678return new JsonSchema { Type = schemaType, Pattern = pattern }; 753return new() { Type = JsonSchemaType.String }; 768return new() { Type = JsonSchemaType.Integer };
JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (1)
323Type |= JsonSchemaType.Null;
5 references to Type
Shared (5)
JsonSchemaExporter\JsonSchemaExporter.cs (2)
180schemaType = derivedSchema.Type; 182else if (schemaType != derivedSchema.Type)
JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (3)
293Count(Type != JsonSchemaType.Any); 321if (Type != JsonSchemaType.Any) 361if (MapSchemaType(Type) is JsonNode type)