System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
137new()
System\Text\Json\Schema\JsonSchemaExporter.cs (33)
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)
192List<JsonSchema> anyOf = schema.AnyOf;
196foreach (JsonSchema branch in anyOf)
217List<KeyValuePair<string, JsonSchema>>? properties = null;
219JsonSchema? additionalProperties = null;
224additionalProperties = JsonSchema.CreateFalseSchema();
237state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
246JsonSchema propertySchema = MapJsonSchemaCore(
257JsonSchema.EnsureMutable(ref propertySchema);
287state.PushSchemaNode(JsonSchema.ItemsPropertyName);
288JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
305state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
307state.PushSchemaNode(JsonSchema.ItemsPropertyName);
309JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
335List<KeyValuePair<string, JsonSchema>>? dictProps = null;
348state.PushSchemaNode(JsonSchema.AdditionalPropertiesPropertyName);
349JsonSchema valueSchema = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
364List<JsonSchema>? unionAnyOf = new(unionCases.Count);
366state.PushSchemaNode(JsonSchema.AnyOfPropertyName);
373JsonSchema caseSchema = MapJsonSchemaCore(ref state, caseTypeInfo, cacheResult: false);
397foreach (JsonSchema caseSchema in unionAnyOf)
416return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
421return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
424JsonSchema CompleteSchema(ref GenerationState state, JsonSchema schema)