Skip to content
New issue

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

Wrong parameter type determination #3000

Closed
ercee opened this issue May 22, 2019 · 2 comments
Closed

Wrong parameter type determination #3000

ercee opened this issue May 22, 2019 · 2 comments
Labels

Comments

@ercee
Copy link

ercee commented May 22, 2019

ScreenClip

As you see in the picture I have two different method, with one query parameter on it.
But swagger shows one of them as body parameter type when I put apiparam annotation on it.

ScreenClip

ScreenClip

You can download example project
https://github.com/ercee/swagger-param-type-issue

Spring boot allows us to use parameters without @RequestParam annotation. But springfox doesn't aware of this.

See:
springfox.documentation.spring.web.readers.parameter.ParameterTypeReader.findParameterType method.

@stale
Copy link

stale bot commented Jun 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 24, 2020
@stale
Copy link

stale bot commented Jul 8, 2020

This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.

@stale stale bot closed this as completed Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant