JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (25)
86public JsonSchemaType Type
94} = JsonSchemaType.Any;
253Count(Type != JsonSchemaType.Any);
281if (Type != JsonSchemaType.Any)
283Type |= JsonSchemaType.Null;
438private static readonly JsonSchemaType[] _schemaValues = new JsonSchemaType[]
441JsonSchemaType.String,
442JsonSchemaType.Integer,
443JsonSchemaType.Number,
444JsonSchemaType.Boolean,
445JsonSchemaType.Array,
446JsonSchemaType.Object,
447JsonSchemaType.Null,
455private static JsonNode? MapSchemaType(JsonSchemaType schemaType)
457if (schemaType is JsonSchemaType.Any)
468foreach (JsonSchemaType type in _schemaValues)
478static string? ToIdentifier(JsonSchemaType schemaType) => schemaType switch
480JsonSchemaType.Null => "null",
481JsonSchemaType.Boolean => "boolean",
482JsonSchemaType.Integer => "integer",
483JsonSchemaType.Number => "number",
484JsonSchemaType.String => "string",
485JsonSchemaType.Array => "array",
486JsonSchemaType.Object => "object",