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) => { });
116[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)] () => { });
134[Consumes(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)] (InferredJsonClass fromBody) => { });
228[ProducesResponseType(typeof(InferredJsonClass), StatusCodes.Status201Created)]
438AssertBodyParameter(GetOpenApiOperation((InferredJsonClass foo) => { }), "foo", JsonSchemaType.Object);
447var operation = GetOpenApiOperation(([FromRoute] int foo, int bar, InferredJsonClass fromBody) => { });
564new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
580new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
594new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
637new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
638new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(InferredJsonClass), new[] { "application/json" })
692var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "",
695new AcceptsMetadata(new string[] { "application/json" }, typeof(InferredJsonClass), true)
713var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "");
729var operation = GetOpenApiOperation((InferredJsonClass? inferredJsonClass) => "");
745var operation = GetOpenApiOperation([Consumes("application/xml")] (InferredJsonClass? inferredJsonClass) => "");
908new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
1097private record ArgumentListRecord([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1099private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1101private record ArgumentListRecordWithoutAttributes(int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1108public InferredJsonClass FromBody { get; set; }
1117public InferredJsonClass FromBody { get; set; }
1131public InferredJsonClass FromBody { get; set; }