1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21TypeInfo = typeInfo;
16 references to TypeInfo
Microsoft.AspNetCore.OpenApi (13)
Extensions\JsonNodeSchemaExtensions.cs (10)
190var type = context.TypeInfo.Type; 197schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 362if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 378var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 384mappings[$"{discriminator}"] = $"#/components/schemas/{createSchemaReferenceId(context.TypeInfo)}{createSchemaReferenceId(jsonDerivedType)}"; 400if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 405if (context.BaseTypeInfo == context.TypeInfo && 419return !context.TypeInfo.Type.IsAbstract 420&& context.TypeInfo.PolymorphismOptions is { } polymorphismOptions 421&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type);
Services\Schemas\OpenApiSchemaService.cs (3)
59var type = context.TypeInfo.Type; 103return new JsonObject { [OpenApiSchemaKeywords.RefKeyword] = createSchemaReferenceId(context.TypeInfo) }; 115schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1310GetAttrs(ctx.TypeInfo.Type);
Shared.Tests (1)
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);