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)]
440AssertBodyParameter(GetOpenApiOperation((InferredJsonClass foo) => { }), "foo", JsonSchemaType.Object);
449var operation = GetOpenApiOperation(([FromRoute] int foo, int bar, InferredJsonClass fromBody) => { });
566new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
582new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
596new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
639new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
640new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(InferredJsonClass), new[] { "application/json" })
694var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "",
697new AcceptsMetadata(new string[] { "application/json" }, typeof(InferredJsonClass), true)
715var operation = GetOpenApiOperation((InferredJsonClass inferredJsonClass) => "");
731var operation = GetOpenApiOperation((InferredJsonClass? inferredJsonClass) => "");
747var operation = GetOpenApiOperation([Consumes("application/xml")] (InferredJsonClass? inferredJsonClass) => "");
910new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
1099private record ArgumentListRecord([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1101private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1103private record ArgumentListRecordWithoutAttributes(int Foo, int Bar, InferredJsonClass FromBody, HttpContext context);
1110public InferredJsonClass FromBody { get; set; }
1119public InferredJsonClass FromBody { get; set; }
1133public InferredJsonClass FromBody { get; set; }