1 write to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
267
JsonTypeInfo
= jsonTypeInfo,
35 references to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Transformers\OpenApiSchemaTransformerContext.cs (1)
31
/// Gets the <see cref="
JsonTypeInfo
"/> associated with the target schema.
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
TransformersBenchmark.cs (2)
106
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription != null)
180
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription != null)
Microsoft.AspNetCore.OpenApi.Tests (32)
Transformers\CustomSchemaTransformerTests.cs (3)
154
if (context.
JsonTypeInfo
.Type == typeof(Shape))
322
if (context.
JsonTypeInfo
.Type == typeof(Product))
330
if (context.
JsonTypeInfo
.Type == typeof(Category))
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
287
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription is not null)
Transformers\SchemaTransformerTests.cs (27)
36
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
50
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
55
Assert.Equal(typeof(int), context.
JsonTypeInfo
.Type);
59
Assert.Equal(typeof(string), context.
JsonTypeInfo
.Type);
63
Assert.Equal(typeof(bool), context.
JsonTypeInfo
.Type);
67
Assert.Equal(typeof(DateTime), context.
JsonTypeInfo
.Type);
84
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
88
Assert.Equal(typeof(int), context.
JsonTypeInfo
.Type);
92
Assert.Equal(typeof(string), context.
JsonTypeInfo
.Type);
96
Assert.Equal(typeof(bool), context.
JsonTypeInfo
.Type);
100
Assert.Equal(typeof(DateTime), context.
JsonTypeInfo
.Type);
190
if (context.
JsonTypeInfo
.Type == typeof(Todo))
221
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription is not null)
425
if (context.
JsonTypeInfo
.Type == typeof(int))
459
if (context.
JsonTypeInfo
.Type == typeof(int))
500
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
536
if (context.
JsonTypeInfo
.Type == typeof(int))
572
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
576
if (context.
JsonTypeInfo
.Type == typeof(Square))
614
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
618
if (context.
JsonTypeInfo
.Type == typeof(Square))
656
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
660
if (context.
JsonTypeInfo
.Type == typeof(Square))
697
if (context.
JsonTypeInfo
.Type == typeof(int))
732
if (context.
JsonTypeInfo
.Type == typeof(Todo))
736
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
958
if (context.
JsonTypeInfo
.Type == typeof(Todo))
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
349
if (context.
JsonTypeInfo
.Type == typeof(Todo))