3 instantiations of OpenApiJsonSchemaContext
Microsoft.AspNetCore.OpenApi (3)
_generated\6\OpenApiJsonSchemaContext.g.cs (1)
24public static global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext Default { get; } = new global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Schemas\OpenApiJsonSchema.cs (1)
34context ??= (options.TypeInfoResolver as OpenApiJsonSchemaContext) ?? new OpenApiJsonSchemaContext(new(options));
Services\Schemas\OpenApiSchemaService.cs (1)
35private readonly OpenApiJsonSchemaContext _jsonSchemaContext = new(new(jsonOptions.Value.SerializerOptions));
13 references to OpenApiJsonSchemaContext
Microsoft.AspNetCore.OpenApi (13)
_generated\6\OpenApiJsonSchemaContext.g.cs (1)
24public static global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext Default { get; } = new global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Schemas\OpenApiJsonSchema.cs (2)
26OpenApiJsonSchemaContext? context = null; 34context ??= (options.TypeInfoResolver as OpenApiJsonSchemaContext) ?? new OpenApiJsonSchemaContext(new(options));
Schemas\OpenApiJsonSchema.Helpers.cs (8)
22/// <param name="context">The <see cref="OpenApiJsonSchemaContext"/> to use for reading.</param> 24private static List<T>? ReadList<T>(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 57/// <param name="context">The <see cref="OpenApiJsonSchemaContext"/> to use for reading.</param> 60private static Dictionary<string, T>? ReadDictionary<T>(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 177private static int GetInt32(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 180private static decimal GetDecimal(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 190/// <param name="context">The <see cref="OpenApiJsonSchemaContext"/> instance.</param> 191public static void ReadProperty(ref Utf8JsonReader reader, string propertyName, OpenApiSchema schema, JsonSerializerOptions options, OpenApiJsonSchemaContext context)
Schemas\OpenApiSchemaJsonOptions.cs (1)
14options.SerializerOptions.TypeInfoResolverChain.Insert(0, OpenApiJsonSchemaContext.Default);
Services\Schemas\OpenApiSchemaService.cs (1)
35private readonly OpenApiJsonSchemaContext _jsonSchemaContext = new(new(jsonOptions.Value.SerializerOptions));