-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Default Media Type application/xml is selected by default #2671
Comments
When referring to the 5.1. springdoc-openapi core properties section, you can change the media type using Please add the following settings to see if they resolve the issue: If you use springdoc.default-consumes-media-type=application/json
springdoc.default-produces-media-type=application/json If you use springdoc:
default-consumes-media-type: application/json
default-produces-media-type: application/json Can you check if the same issue persists after adding these settings? |
|
@bnasslahsen I have identified the issue and submitted a PR to fix it. The problem with the media type order not being preserved, causing the default type not to be prioritized, has been addressed by using Thank you. |
We ran into this issue just now and are happy to see a resolution for it already merged into main. May I ask what is the next release date for springdoc that contains this fix? Thanks! |
Most probably, after spring-boot 3.4 goes GA: https://calendar.spring.io/ |
Describe the bug
I wrote an interface,produces = {"application/json", "application/xml"}, consumes = {"application/json", "application/xml"}
When the springdoc version was 2.5.0, application/json was selected by default
But when I switched to 2.6.0, the default choice changed to application/xml
I haven't changed anything except the version number of springdoc and I would like to know how to configure the Media type to return to the default application/json value
The text was updated successfully, but these errors were encountered: