You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spring boot version - (v2.1.6.RELEASE)
it seems that swagger by default ignore paramters order define on controller method , and by defualt sort paramers order by paramter name (alphabetically)
I think that that the correct approch is first display paramters order as they define on controller method , as fallback to that you can add postion argument to swagger annotation / or enable some configuration to disable this default alphabetically sorting .
method on spring boot controller
result on swagger-ui.html
as you can see swagger ui html not display the paramter order as they define on controller method
The text was updated successfully, but these errors were encountered:
using spring boot + swagger , maven project
springfox artifacts
io.springfox
springfox-swagger2
2.9.2
spring boot version - (v2.1.6.RELEASE)
it seems that swagger by default ignore paramters order define on controller method , and by defualt sort paramers order by paramter name (alphabetically)
I think that that the correct approch is first display paramters order as they define on controller method , as fallback to that you can add postion argument to swagger annotation / or enable some configuration to disable this default alphabetically sorting .
method on spring boot controller
result on swagger-ui.html
as you can see swagger ui html not display the paramter order as they define on controller method
The text was updated successfully, but these errors were encountered: