System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
127new()
System\Text\Json\Schema\JsonSchemaExporter.cs (26)
52JsonSchema schema = MapJsonSchemaCore(ref state, typeInfo);
56private static JsonSchema MapJsonSchemaCore(
65KeyValuePair<string, JsonSchema>? typeDiscriminator = null,
103List<JsonSchema>? anyOf = new(derivedTypes.Count);
105state.PushSchemaNode(JsonSchema.AnyOfPropertyName);
111KeyValuePair<string, JsonSchema>? derivedTypeDiscriminator = null;
120JsonSchema discriminatorSchema = new() { Constant = discriminatorNode };
127JsonSchema derivedSchema = MapJsonSchemaCore(
157foreach (JsonSchema derivedSchema in anyOf)
197List<KeyValuePair<string, JsonSchema>>? properties = null;
199JsonSchema? additionalProperties = null;
204additionalProperties = JsonSchema.CreateFalseSchema();
217state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
226JsonSchema propertySchema = MapJsonSchemaCore(
237JsonSchema.EnsureMutable(ref propertySchema);
267state.PushSchemaNode(JsonSchema.ItemsPropertyName);
268JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
285state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
287state.PushSchemaNode(JsonSchema.ItemsPropertyName);
289JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
315List<KeyValuePair<string, JsonSchema>>? dictProps = null;
328state.PushSchemaNode(JsonSchema.AdditionalPropertiesPropertyName);
329JsonSchema valueSchema = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
343return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
346JsonSchema CompleteSchema(ref GenerationState state, JsonSchema schema)