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
The ordering of API endpoints seems to change sometimes, without any changes in configuration files and API files. In my case, the ordering changes sometimes, when there are some changes in files from classpath, but these changes do not affect the API itself.
Most of the time endpoints keep lexical order, but sometimes they are mixed regardless if generated file is in json or yml format.
I cannot share my config and code, because they are confidential.
I didn't find any information in docs about forcing the ordering. Do you know a way to ensure that ordering will be the same each time I generate swagger, or I have to implement it by myself? Maybe the ordering depends on the order of files in classpath that is passed to plugin via gradle config?
Expected order:
paths:
/some/path
...
/some/path/{id}
Unexpected order that sometimes occur:
paths:
/some/path/{id}
...
/some/path
The text was updated successfully, but these errors were encountered:
please see #3740 (vesion 2.1.6) which introduces deterministic input and sortOutput parameter along with full customization with objectMapperProcessor.
Closing ticket, please reopen if you're still experiencing issues
Uh oh!
There was an error while loading. Please reload this page.
The ordering of API endpoints seems to change sometimes, without any changes in configuration files and API files. In my case, the ordering changes sometimes, when there are some changes in files from classpath, but these changes do not affect the API itself.
Most of the time endpoints keep lexical order, but sometimes they are mixed regardless if generated file is in json or yml format.
I cannot share my config and code, because they are confidential.
I didn't find any information in docs about forcing the ordering. Do you know a way to ensure that ordering will be the same each time I generate swagger, or I have to implement it by myself? Maybe the ordering depends on the order of files in classpath that is passed to plugin via gradle config?
Expected order:
Unexpected order that sometimes occur:
The text was updated successfully, but these errors were encountered: