1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21TypeInfo = typeInfo;
19 references to TypeInfo
Microsoft.AspNetCore.OpenApi (17)
Extensions\JsonNodeSchemaExtensions.cs (13)
209var type = context.TypeInfo.Type; 432if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 443var baseSchemaReferenceId = createSchemaReferenceId(context.TypeInfo); 449var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 475if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 479if (context.TypeInfo.Kind == JsonTypeInfoKind.Union) 484if (context.BaseTypeInfo == context.TypeInfo && 510return !context.TypeInfo.Type.IsAbstract 511&& context.TypeInfo.PolymorphismOptions is { } polymorphismOptions 512&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type); 522return !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)
62var type = context.TypeInfo.Type; 109var underlyingType = Nullable.GetUnderlyingType(context.TypeInfo.Type) ?? context.TypeInfo.Type; 128schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateContext.cs (1)
38public 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);