Skip to content
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

Add 'unsorted' option for sortTags and sortEndpoints #806

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

markopy
Copy link

@markopy markopy commented Jun 10, 2023

This PR adds an unsorted value for both options.sortTags and options.sortEndpoints which disables explicit sorting of tags and endpoints by the swagger UI.

This change is needed to be able to define the order of the tag groups in the UI via options.tags. While the documentation claimed that was the default behavior, groups were actually always sorted alphabetically without any way to change their order.

@robmcguinness robmcguinness merged commit 13e401f into hapi-swagger:master Jul 8, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants