1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21TypeInfo = typeInfo;
17 references to TypeInfo
Microsoft.AspNetCore.OpenApi (15)
Extensions\JsonNodeSchemaExtensions.cs (11)
210var type = context.TypeInfo.Type; 220schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 439if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 455var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 461mappings[$"{discriminator}"] = $"{createSchemaReferenceId(context.TypeInfo)}{createSchemaReferenceId(jsonDerivedType)}"; 477if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 481if (context.TypeInfo.Kind == JsonTypeInfoKind.Union) 486if (context.BaseTypeInfo == context.TypeInfo && 530return !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)
61var type = context.TypeInfo.Type; 108var underlyingType = Nullable.GetUnderlyingType(context.TypeInfo.Type) ?? context.TypeInfo.Type; 122schema.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)
519(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo);