-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
openapi: sort tags file #4595
openapi: sort tags file #4595
Conversation
This change sorts the tags in the tags file. This makes it easier to find tags in the file. #4580 already introduced a test to check that we have no duplicate tags, so this isn't as necessary anymore, but it's still nice to have.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! We could also add a test to validate this is sorted, so we don't break it in the future
Ooh, I like that. Give me a bit to whip it up 😄 |
On the other hand, we already sort it before exporting it, so it's never going to be an issue in the output. I'm not sure how I feel about exporting the raw constant and checking that. It seems like an arbitrary thing to cause test failure over. What do you think? |
🤔 The question I'd ask myself is What's the value of having it sorted in this file if we're already sorting it later?, and 2 things come to my mind:
|
Yeah, okay, I like your reasoning here. You've convinced me. I'll fix. |
This change sorts the tags in the tags file and tests that the list is sorted alphabetically. This makes it easier to
find tags in the file.
#4580 already introduced a test to check that we have no duplicate
tags, so this isn't as necessary anymore, but it's still nice to have.
It also removes the previous auto-sorting before exporting. This is to ensure that entries are sorted in the source list. This might seem like a regression, but it makes it easier to spot near-duplicate tags: