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
Missing "content-type" header during POST request and missing properties in swagger-ui screen #3353
Comments
It may be a bug.I’ll investigate |
@gwcakep would've been easier if you'd based the code rather than an screenshot of the code |
As far as I know @JSONVIEW and model attributes dont go together. Once is a request body and the other is usually a url encoded form. Would you mind sharing what WithdrawQueryRequestView looks like? |
Hi Dilip, Thanks for the followup. Below is the content of WithdrawQueryRequestView :
The code for the BaseView :
I tried to strip @JSONVIEW and @validated related annotations to leave only @ModelAttribute annotation but the issue still persist
out of curiosity, I stripped io.springfox springfox-boot-starter 3.0.0-SNAPSHOT dependency from my pom.xml and added springfox dependencies with latest stable version 2.10.5 one by one. Surprisingly the issue resolved without any modification to the above controller's method (@JSONVIEW and @validated are intact) I really want to use the io.springfox springfox-boot-starter 3.0.0-SNAPSHOT as i'm using spring boot framework (version 2.2.6.RELEASE) now. Is that something related to my current configurations which doesn't work well with this dependency ?
|
Thank you for the additional details! 👀 |
io.springfox springfox-boot-starter 3.0.0-SNAPSHOT
for below method
swagger-ui is not displaying the properties in the bean instead only displaying "body" param only and also missing "x-www-form-urlencoded" content-type when sending the request
would appreciate if somebody could provide some pointers. Thanks
The text was updated successfully, but these errors were encountered: