We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v 1.1.7
The parameter of the first method is shown in swagger-ui, the 2nd method does not have any parameter. Again, the 3rd method shows the parameter.
@RestController public class PersonServlet { @GetMapping(value = "/persons") public String persons(@NotBlank String name) { return "OK"; } @GetMapping(value = "/persons2") public String persons2(@NotBlank @Parameter(description = "persons name") String name) { return "OK"; } @GetMapping(value = "/persons3") public String persons3(@NotBlank @Parameter(description = "persons name") @RequestParam String name) { return "OK"; } }
{ "openapi":"3.0.1", "info":{ "title":"OpenAPI definition", "version":"v0" }, "paths":{ "/persons":{ "get":{ "operationId":"persons", "parameters":[ { "name":"name", "in":"query", "required":true, "schema":{ "type":"string" } } ], "responses":{ "200 OK":{ "description":"default response", "content":{ "*/*":{ "schema":{ "type":"string" } } } } } } }, "/persons2":{ "get":{ "operationId":"persons2", "responses":{ "200 OK":{ "description":"default response", "content":{ "*/*":{ "schema":{ "type":"string" } } } } } } }, "/persons3":{ "get":{ "operationId":"persons3", "parameters":[ { "name":"name", "in":"query", "description":"persons name", "required":true, "schema":{ "type":"string" } } ], "responses":{ "200 OK":{ "description":"default response", "content":{ "*/*":{ "schema":{ "type":"string" } } } } } } } }, "components":{ } }
The text was updated successfully, but these errors were encountered:
The right description is Parameter missing if @parameter is used without name! This feature will be availbale on v1.1.8
Sorry, something went wrong.
31a27e1
No branches or pull requests
v 1.1.7
The parameter of the first method is shown in swagger-ui, the 2nd method does not have any parameter. Again, the 3rd method shows the parameter.
The text was updated successfully, but these errors were encountered: