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)
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)
61var type = context.TypeInfo.Type; 105return new JsonObject { [OpenApiSchemaKeywords.RefKeyword] = context.TypeInfo.GetSchemaReferenceId() }; 117schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
438(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo);