1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21
TypeInfo
= typeInfo;
19 references to TypeInfo
Microsoft.AspNetCore.OpenApi (17)
Extensions\JsonNodeSchemaExtensions.cs (13)
209
var type = context.
TypeInfo
.Type;
432
if (context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null)
443
var baseSchemaReferenceId = createSchemaReferenceId(context.
TypeInfo
);
449
var jsonDerivedType = context.
TypeInfo
.Options.GetTypeInfo(derivedType.DerivedType);
475
if (createSchemaReferenceId(context.
TypeInfo
) is { } schemaReferenceId)
479
if (context.
TypeInfo
.Kind == JsonTypeInfoKind.Union)
484
if (context.BaseTypeInfo == context.
TypeInfo
&&
510
return !context.
TypeInfo
.Type.IsAbstract
511
&& context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions
512
&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.
TypeInfo
.Type);
522
return !context.
TypeInfo
.Type.IsAbstract
523
&& context.
TypeInfo
.PolymorphismOptions is { } polymorphismOptions
524
&& polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.
TypeInfo
.Type && type.TypeDiscriminator is not null);
Services\Schemas\OpenApiSchemaService.cs (4)
62
var type = context.
TypeInfo
.Type;
109
var underlyingType = Nullable.GetUnderlyingType(context.
TypeInfo
.Type) ?? context.
TypeInfo
.Type;
128
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)
549
(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.
TypeInfo
, context.PropertyInfo);