4 references to OpenApiJsonSchemaContext
Microsoft.AspNetCore.OpenApi (4)
Schemas\OpenApiJsonSchema.Helpers.cs (2)
33
values.Add((T)JsonSerializer.Deserialize(ref reader, typeof(T),
OpenApiJsonSchemaContext
.Default)!);
78
values[key] = (T)JsonSerializer.Deserialize(ref reader, typeof(T),
OpenApiJsonSchemaContext
.Default)!;
Schemas\OpenApiSchemaJsonOptions.cs (1)
14
options.SerializerOptions.TypeInfoResolverChain.Insert(0,
OpenApiJsonSchemaContext
.Default);
Services\Schemas\OpenApiSchemaService.cs (1)
35
private readonly
OpenApiJsonSchemaContext
_jsonSchemaContext = new OpenApiJsonSchemaContext(new(jsonOptions.Value.SerializerOptions));