-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swagger-UI defaults to Body type parameter. #2111
Comments
Here is swagger json spec generated in both cases.
When I don't specify QueryParam annotation in implementation method.
|
As you already figured out, the issue is with swagger-core and should be handled there. There are two PRs that may resolve the issue, looking into merging them soon. |
Thanks for update |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I have following interface and equivalent implementation for a rest API.
Interface:
Implementation:
Now, When I don't specify the parameter to be a QueryParam type in implementation method, I get following output using swagger-ui and returns a 200 response with parameter value null.


When I specify the parameter to be a QueryParam type in implementation, I get 404 for some issue in swagger-core reported here(swagger-api/swagger-core#1506 (comment)). However the field does show up as QueryParam type text-field in UI.
The text was updated successfully, but these errors were encountered: