1 write to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
280
JsonTypeInfo
= jsonTypeInfo,
35 references to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Transformers\OpenApiSchemaTransformerContext.cs (1)
30
/// Gets the <see cref="
JsonTypeInfo
"/> associated with the target schema.
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
TransformersBenchmark.cs (2)
105
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription != null)
179
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription != null)
Microsoft.AspNetCore.OpenApi.Tests (32)
Transformers\CustomSchemaTransformerTests.cs (3)
151
if (context.
JsonTypeInfo
.Type == typeof(Shape))
319
if (context.
JsonTypeInfo
.Type == typeof(Product))
327
if (context.
JsonTypeInfo
.Type == typeof(Category))
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
283
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription is not null)
Transformers\SchemaTransformerTests.cs (27)
33
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
47
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
52
Assert.Equal(typeof(int), context.
JsonTypeInfo
.Type);
56
Assert.Equal(typeof(string), context.
JsonTypeInfo
.Type);
60
Assert.Equal(typeof(bool), context.
JsonTypeInfo
.Type);
64
Assert.Equal(typeof(DateTime), context.
JsonTypeInfo
.Type);
81
Assert.Equal(typeof(Todo), context.
JsonTypeInfo
.Type);
85
Assert.Equal(typeof(int), context.
JsonTypeInfo
.Type);
89
Assert.Equal(typeof(string), context.
JsonTypeInfo
.Type);
93
Assert.Equal(typeof(bool), context.
JsonTypeInfo
.Type);
97
Assert.Equal(typeof(DateTime), context.
JsonTypeInfo
.Type);
187
if (context.
JsonTypeInfo
.Type == typeof(Todo))
218
if (context.
JsonTypeInfo
.Type == typeof(Todo) && context.ParameterDescription is not null)
422
if (context.
JsonTypeInfo
.Type == typeof(int))
456
if (context.
JsonTypeInfo
.Type == typeof(int))
497
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
533
if (context.
JsonTypeInfo
.Type == typeof(int))
569
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
573
if (context.
JsonTypeInfo
.Type == typeof(Square))
611
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
615
if (context.
JsonTypeInfo
.Type == typeof(Square))
653
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
657
if (context.
JsonTypeInfo
.Type == typeof(Square))
694
if (context.
JsonTypeInfo
.Type == typeof(int))
729
if (context.
JsonTypeInfo
.Type == typeof(Todo))
733
if (context.
JsonTypeInfo
.Type == typeof(Triangle))
955
if (context.
JsonTypeInfo
.Type == typeof(Todo))
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
347
if (context.
JsonTypeInfo
.Type == typeof(Todo))