System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
130new()
System\Text\Json\Schema\JsonSchemaExporter.cs (26)
62JsonSchema schema = MapJsonSchemaCore(ref state, typeInfo);
66private static JsonSchema MapJsonSchemaCore(
75KeyValuePair<string, JsonSchema>? typeDiscriminator = null,
113List<JsonSchema>? anyOf = new(derivedTypes.Count);
115state.PushSchemaNode(JsonSchema.AnyOfPropertyName);
121KeyValuePair<string, JsonSchema>? derivedTypeDiscriminator = null;
130JsonSchema discriminatorSchema = new() { Constant = discriminatorNode };
137JsonSchema derivedSchema = MapJsonSchemaCore(
167foreach (JsonSchema derivedSchema in anyOf)
207List<KeyValuePair<string, JsonSchema>>? properties = null;
209JsonSchema? additionalProperties = null;
214additionalProperties = JsonSchema.CreateFalseSchema();
227state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
236JsonSchema propertySchema = MapJsonSchemaCore(
247JsonSchema.EnsureMutable(ref propertySchema);
277state.PushSchemaNode(JsonSchema.ItemsPropertyName);
278JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
295state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
297state.PushSchemaNode(JsonSchema.ItemsPropertyName);
299JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
325List<KeyValuePair<string, JsonSchema>>? dictProps = null;
338state.PushSchemaNode(JsonSchema.AdditionalPropertiesPropertyName);
339JsonSchema valueSchema = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
353return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
356JsonSchema CompleteSchema(ref GenerationState state, JsonSchema schema)