11 instantiations of InferredJsonClass
Microsoft.AspNetCore.OpenApi.Tests (11)
Services\OpenApiGeneratorTests.cs (11)
161AssertJsonResponse(GetOpenApiOperation(() => new InferredJsonClass()), JsonSchemaType.Object); 163AssertJsonResponse(GetOpenApiOperation(() => Task.FromResult(new InferredJsonClass())), JsonSchemaType.Object); 165AssertJsonResponse(GetOpenApiOperation(() => ValueTask.FromResult(new InferredJsonClass())), JsonSchemaType.Object); 167AssertJsonResponse(GetOpenApiOperation(() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new InferredJsonClass())), JsonSchemaType.Object); 206() => new InferredJsonClass()); 231() => Results.Ok(new InferredJsonClass())); 253() => new InferredJsonClass()); 270() => new InferredJsonClass()); 290() => new InferredJsonClass()); 317() => new InferredJsonClass()); 903var operation = GetOpenApiOperation(() => TypedResults.Ok(new InferredJsonClass()),
25 references to InferredJsonClass
Microsoft.AspNetCore.OpenApi.Tests (25)
Services\OpenApiGeneratorTests.cs (25)
93[Consumes("application/custom")] (InferredJsonClass fromBody) => { })); 103[Consumes("application/custom0", "application/custom1")] (InferredJsonClass fromBody) => { }); 117[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)] () => { }); 135[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)] (InferredJsonClass fromBody) => { }); 229[ProducesResponseType(typeof(InferredJsonClass), StatusCodes.Status201Created)] 439AssertBodyParameter(GetOpenApiOperation((InferredJsonClass foo) => { }), "foo", JsonSchemaType.Object); 448var operation = GetOpenApiOperation(([FromRoute] int foo, int bar, InferredJsonClass fromBody) => { }); 565new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }), 581new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }), 595new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }), 638new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }), 639new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(InferredJsonClass), new[] { "application/json" }) 693var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "", 696new AcceptsMetadata(new string[] { "application/json" }, typeof(InferredJsonClass), true) 714var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => ""); 730var operation = GetOpenApiOperation((InferredJsonClass? inferredJsonClass) => ""); 746var operation = GetOpenApiOperation([Consumes("application/xml")] (InferredJsonClass? inferredJsonClass) => ""); 909new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }), 1098private record ArgumentListRecord([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context); 1100private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context); 1102private record ArgumentListRecordWithoutAttributes(int Foo, int Bar, InferredJsonClass FromBody, HttpContext context); 1109public InferredJsonClass FromBody { get; set; } 1118public InferredJsonClass FromBody { get; set; } 1132public InferredJsonClass FromBody { get; set; }