1 write to JsonTypeInfo
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
267JsonTypeInfo = 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)
106if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription != null) 180if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription != null)
Microsoft.AspNetCore.OpenApi.Tests (32)
Transformers\CustomSchemaTransformerTests.cs (3)
154if (context.JsonTypeInfo.Type == typeof(Shape)) 322if (context.JsonTypeInfo.Type == typeof(Product)) 330if (context.JsonTypeInfo.Type == typeof(Category))
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
287if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription is not null)
Transformers\SchemaTransformerTests.cs (27)
36Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 50Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 55Assert.Equal(typeof(int), context.JsonTypeInfo.Type); 59Assert.Equal(typeof(string), context.JsonTypeInfo.Type); 63Assert.Equal(typeof(bool), context.JsonTypeInfo.Type); 67Assert.Equal(typeof(DateTime), context.JsonTypeInfo.Type); 84Assert.Equal(typeof(Todo), context.JsonTypeInfo.Type); 88Assert.Equal(typeof(int), context.JsonTypeInfo.Type); 92Assert.Equal(typeof(string), context.JsonTypeInfo.Type); 96Assert.Equal(typeof(bool), context.JsonTypeInfo.Type); 100Assert.Equal(typeof(DateTime), context.JsonTypeInfo.Type); 190if (context.JsonTypeInfo.Type == typeof(Todo)) 221if (context.JsonTypeInfo.Type == typeof(Todo) && context.ParameterDescription is not null) 425if (context.JsonTypeInfo.Type == typeof(int)) 459if (context.JsonTypeInfo.Type == typeof(int)) 500if (context.JsonTypeInfo.Type == typeof(Triangle)) 536if (context.JsonTypeInfo.Type == typeof(int)) 572if (context.JsonTypeInfo.Type == typeof(Triangle)) 576if (context.JsonTypeInfo.Type == typeof(Square)) 614if (context.JsonTypeInfo.Type == typeof(Triangle)) 618if (context.JsonTypeInfo.Type == typeof(Square)) 656if (context.JsonTypeInfo.Type == typeof(Triangle)) 660if (context.JsonTypeInfo.Type == typeof(Square)) 697if (context.JsonTypeInfo.Type == typeof(int)) 732if (context.JsonTypeInfo.Type == typeof(Todo)) 736if (context.JsonTypeInfo.Type == typeof(Triangle)) 958if (context.JsonTypeInfo.Type == typeof(Todo))
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
349if (context.JsonTypeInfo.Type == typeof(Todo))