-
Notifications
You must be signed in to change notification settings - Fork 15
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
Sort paths by tags/operationId? #45
Comments
Currently openapi-format sorts the elements within OpenAPI in a certain order, for example as defined in the default |
Right -- My question: Is it possible to expand to sort another level down? So, organize |
I have to review the sorting logic, since currently it does 1 sort for all elements on 1 level. |
I added the option to sort paths alphabetically or by tag, by passing You can play with it at the online playground https://openapi-format-playground.vercel.app/ and select on the left the desired paths ordering. Would this solve your use-case? I considered sorting by "operationId", but it is not required, so what would be the expected behaviour with paths without it? |
linked to #119 |
Closing the issue. |
Is it possible to sort the paths deterministically? I'm thinking by tags then operationId?
The text was updated successfully, but these errors were encountered: