System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
137new()
System\Text\Json\Schema\JsonSchemaExporter.cs (34)
53JsonSchema schema = MapJsonSchemaCore(ref state, typeInfo);
57private static JsonSchema MapJsonSchemaCore(
66KeyValuePair<string, JsonSchema>? typeDiscriminator = null,
104List<JsonSchema>? anyOf = new(derivedTypes.Count);
106state.PushSchemaNode(JsonSchema.AnyOfPropertyName);
112KeyValuePair<string, JsonSchema>? derivedTypeDiscriminator = null;
121JsonSchema discriminatorSchema = new() { Constant = discriminatorNode };
128JsonSchema derivedSchema = MapJsonSchemaCore(
158foreach (JsonSchema derivedSchema in anyOf)
193List<JsonSchema> anyOf = schema.AnyOf;
197foreach (JsonSchema branch in anyOf)
218List<KeyValuePair<string, JsonSchema>>? properties = null;
220JsonSchema? additionalProperties = null;
225additionalProperties = JsonSchema.CreateFalseSchema();
238state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
247JsonSchema propertySchema = MapJsonSchemaCore(
258JsonSchema.EnsureMutable(ref propertySchema);
288state.PushSchemaNode(JsonSchema.ItemsPropertyName);
289JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
306state.PushSchemaNode(JsonSchema.PropertiesPropertyName);
308state.PushSchemaNode(JsonSchema.ItemsPropertyName);
310JsonSchema items = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
336List<KeyValuePair<string, JsonSchema>>? dictProps = null;
349state.PushSchemaNode(JsonSchema.AdditionalPropertiesPropertyName);
350JsonSchema valueSchema = MapJsonSchemaCore(ref state, typeInfo.ElementTypeInfo, customNumberHandling: effectiveNumberHandling);
365List<JsonSchema>? unionAnyOf = new(unionCases.Count);
367state.PushSchemaNode(JsonSchema.AnyOfPropertyName);
374JsonSchema caseSchema = MapJsonSchemaCore(ref state, caseTypeInfo, cacheResult: false);
398foreach (JsonSchema caseSchema in unionAnyOf)
417return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
422return CompleteSchema(ref state, JsonSchema.CreateTrueSchema());
425JsonSchema CompleteSchema(ref GenerationState state, JsonSchema schema)
430JsonSchema.EnsureMutable(ref schema);