1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21TypeInfo = typeInfo;
14 references to TypeInfo
Microsoft.AspNetCore.OpenApi (12)
Extensions\JsonNodeSchemaExtensions.cs (10)
192var type = context.TypeInfo.Type; 202schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 366if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 382var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 388mappings[$"{discriminator}"] = $"{createSchemaReferenceId(context.TypeInfo)}{createSchemaReferenceId(jsonDerivedType)}"; 404if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 409if (context.BaseTypeInfo == context.TypeInfo && 423return !context.TypeInfo.Type.IsAbstract 424&& context.TypeInfo.PolymorphismOptions is { } polymorphismOptions 425&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type);
Services\Schemas\OpenApiSchemaService.cs (2)
60var type = context.TypeInfo.Type; 108schema.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)
428(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo);