1 write to TypeInfo
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
21TypeInfo = typeInfo;
14 references to TypeInfo
Microsoft.AspNetCore.OpenApi (13)
Extensions\JsonNodeSchemaExtensions.cs (10)
207var type = context.TypeInfo.Type; 217schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 384if (context.TypeInfo.PolymorphismOptions is { } polymorphismOptions && context.BaseTypeInfo == null) 400var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 406mappings[$"{discriminator}"] = $"{createSchemaReferenceId(context.TypeInfo)}{createSchemaReferenceId(jsonDerivedType)}"; 422if (createSchemaReferenceId(context.TypeInfo) is { } schemaReferenceId) 427if (context.BaseTypeInfo == context.TypeInfo && 441return !context.TypeInfo.Type.IsAbstract 442&& context.TypeInfo.PolymorphismOptions is { } polymorphismOptions 443&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type);
Services\Schemas\OpenApiSchemaService.cs (3)
60var type = context.TypeInfo.Type; 104if (context.TypeInfo.Type.GetCustomAttributes(inherit: false).OfType<DescriptionAttribute>().LastOrDefault() is { } typeDescriptionAttribute) 117schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
441(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo);