1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21
TypeInfo
= typeInfo;
17 references to TypeInfo
Microsoft.AspNetCore.OpenApi (15)
Extensions\JsonNodeSchemaExtensions.cs (11)
210
var type = context.
TypeInfo
.Type;
220
schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.
TypeInfo
);
439
if (context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null)
455
var jsonDerivedType = context.
TypeInfo
.Options.GetTypeInfo(derivedType.DerivedType);
461
mappings[$"{discriminator}"] = $"{createSchemaReferenceId(context.
TypeInfo
)}{createSchemaReferenceId(jsonDerivedType)}";
477
if (createSchemaReferenceId(context.
TypeInfo
) is { } schemaReferenceId)
481
if (context.
TypeInfo
.Kind == JsonTypeInfoKind.Union)
486
if (context.BaseTypeInfo == context.
TypeInfo
&&
530
return !context.
TypeInfo
.Type.IsAbstract
531
&& context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions
532
&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.
TypeInfo
.Type);
Services\Schemas\OpenApiSchemaService.cs (4)
61
var type = context.
TypeInfo
.Type;
108
var underlyingType = Nullable.GetUnderlyingType(context.
TypeInfo
.Type) ?? context.
TypeInfo
.Type;
122
schema.ApplyDefaultValue(defaultValueAttribute.Value, context.
TypeInfo
);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateContext.cs (1)
38
public JsonTypeInfo TypeInfo => _exporterContext.
TypeInfo
;
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
519
(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.
TypeInfo
, context.PropertyInfo);