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)
193var type = context.TypeInfo.Type; 203schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 367if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 383var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 389mappings[$"{discriminator}"] = $"#/components/schemas/{createSchemaReferenceId(context.TypeInfo)}{createSchemaReferenceId(jsonDerivedType)}"; 405if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 410if (context.BaseTypeInfo == context.TypeInfo && 424return !context.TypeInfo.Type.IsAbstract 425&& context.TypeInfo.PolymorphismOptions is { } polymorphismOptions 426&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type);
Services\Schemas\OpenApiSchemaService.cs (2)
61var type = context.TypeInfo.Type; 109schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1310GetAttrs(ctx.TypeInfo.Type);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
438(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo);