1 write to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
280JsonTypeInfo = 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)
105if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription != null) 179if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription != null)
Microsoft.AspNetCore.OpenApi.Tests (32)
Transformers\CustomSchemaTransformerTests.cs (3)
151if (context.JsonTypeInfo.Type == typeof(Shape)) 319if (context.JsonTypeInfo.Type == typeof(Product)) 327if (context.JsonTypeInfo.Type == typeof(Category))
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
283if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription is not null)
Transformers\SchemaTransformerTests.cs (27)
33Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 47Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 52Assert.Equal(typeof(int), context.JsonTypeInfo.Type); 56Assert.Equal(typeof(string), context.JsonTypeInfo.Type); 60Assert.Equal(typeof(bool), context.JsonTypeInfo.Type); 64Assert.Equal(typeof(DateTime), context.JsonTypeInfo.Type); 81Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 85Assert.Equal(typeof(int), context.JsonTypeInfo.Type); 89Assert.Equal(typeof(string), context.JsonTypeInfo.Type); 93Assert.Equal(typeof(bool), context.JsonTypeInfo.Type); 97Assert.Equal(typeof(DateTime), context.JsonTypeInfo.Type); 187if (context.JsonTypeInfo.Type == typeof(Todo)) 218if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription is not null) 422if (context.JsonTypeInfo.Type == typeof(int)) 456if (context.JsonTypeInfo.Type == typeof(int)) 497if (context.JsonTypeInfo.Type == typeof(Triangle)) 533if (context.JsonTypeInfo.Type == typeof(int)) 569if (context.JsonTypeInfo.Type == typeof(Triangle)) 573if (context.JsonTypeInfo.Type == typeof(Square)) 611if (context.JsonTypeInfo.Type == typeof(Triangle)) 615if (context.JsonTypeInfo.Type == typeof(Square)) 653if (context.JsonTypeInfo.Type == typeof(Triangle)) 657if (context.JsonTypeInfo.Type == typeof(Square)) 694if (context.JsonTypeInfo.Type == typeof(int)) 729if (context.JsonTypeInfo.Type == typeof(Todo)) 733if (context.JsonTypeInfo.Type == typeof(Triangle)) 955if (context.JsonTypeInfo.Type == typeof(Todo))
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
347if (context.JsonTypeInfo.Type == typeof(Todo))