Closed
Description
It would be great if beans are supported in GET
endpoints.
@RestController
public class MyController {
@GetMapping
public Object persons(@Valid PersonDto person) {
}
}
class PersonDto {
@NotBlank private String name;
@NotNull private Integer age;
}
In this case, the following error is printed:
Resolver error at paths./my/persons.get.parameters.0.schema.$ref
Could not resolve reference: Could not resolve pointer: /components/schemas/PersonDto does not exist in document