1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21
TypeInfo
= typeInfo;
14 references to TypeInfo
Microsoft.AspNetCore.OpenApi (13)
Extensions\JsonNodeSchemaExtensions.cs (10)
190
var type = context.
TypeInfo
.Type;
197
schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.
TypeInfo
);
362
if (context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null)
378
var jsonDerivedType = context.
TypeInfo
.Options.GetTypeInfo(derivedType.DerivedType);
384
mappings[$"{discriminator}"] = $"#/components/schemas/{createSchemaReferenceId(context.
TypeInfo
)}{createSchemaReferenceId(jsonDerivedType)}";
400
if (createSchemaReferenceId(context.
TypeInfo
) is { } schemaReferenceId)
405
if (context.BaseTypeInfo == context.
TypeInfo
&&
419
return !context.
TypeInfo
.Type.IsAbstract
420
&& context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions
421
&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.
TypeInfo
.Type);
Services\Schemas\OpenApiSchemaService.cs (3)
61
var type = context.
TypeInfo
.Type;
105
return new JsonObject { [OpenApiSchemaKeywords.RefKeyword] = context.
TypeInfo
.GetSchemaReferenceId() };
117
schema.ApplyDefaultValue(defaultValueAttribute.Value, context.
TypeInfo
);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
438
(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.
TypeInfo
, context.PropertyInfo);