System\Text\Json\Schema\JsonSchema.cs (24)
53public JsonSchemaType Type { get; set { VerifyMutable(); field = value; } } = JsonSchemaType.Any;
102Count(Type != JsonSchemaType.Any);
136if (Type != JsonSchemaType.Any)
138Type |= JsonSchemaType.Null;
291private static ReadOnlySpan<JsonSchemaType> s_schemaValues =>
294JsonSchemaType.String,
295JsonSchemaType.Integer,
296JsonSchemaType.Number,
297JsonSchemaType.Boolean,
298JsonSchemaType.Array,
299JsonSchemaType.Object,
300JsonSchemaType.Null,
313public static JsonNode? MapSchemaType(JsonSchemaType schemaType)
315if (schemaType is JsonSchemaType.Any)
326foreach (JsonSchemaType type in s_schemaValues)
336static string? ToIdentifier(JsonSchemaType schemaType)
340JsonSchemaType.Null => "null",
341JsonSchemaType.Boolean => "boolean",
342JsonSchemaType.Integer => "integer",
343JsonSchemaType.Number => "number",
344JsonSchemaType.String => "string",
345JsonSchemaType.Array => "array",
346JsonSchemaType.Object => "object",