11 instantiations of InferredJsonClass
Microsoft.AspNetCore.OpenApi.Tests (11)
25 references to InferredJsonClass
Microsoft.AspNetCore.OpenApi.Tests (25)
Services\OpenApiGeneratorTests.cs (25)
92[Consumes("application/custom")] (InferredJsonClass fromBody) => { }));
102[Consumes("application/custom0", "application/custom1")] (InferredJsonClass fromBody) => { });
115[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)] () => { });
132[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)] (InferredJsonClass fromBody) => { });
225[ProducesResponseType(typeof(InferredJsonClass), StatusCodes.Status201Created)]
433AssertBodyParameter(GetOpenApiOperation((InferredJsonClass foo) => { }), "foo", "object");
442var operation = GetOpenApiOperation(([FromRoute] int foo, int bar, InferredJsonClass fromBody) => { });
557new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
573new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
587new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
630new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
631new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(InferredJsonClass), new[] { "application/json" })
683var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "",
686new AcceptsMetadata(new string[] { "application/json" }, typeof(InferredJsonClass), true)
702var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "");
716var operation = GetOpenApiOperation((InferredJsonClass? inferredJsonClass) => "");
730var operation = GetOpenApiOperation([Consumes("application/xml")] (InferredJsonClass? inferredJsonClass) => "");
879new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
1068private record ArgumentListRecord([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1070private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1072private record ArgumentListRecordWithoutAttributes(int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1079public InferredJsonClass FromBody { get; set; }
1088public InferredJsonClass FromBody { get; set; }
1102public InferredJsonClass FromBody { get; set; }