-
-
Notifications
You must be signed in to change notification settings - Fork 533
New --alphabetize
switch: Sorts output file consistently
#942
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
Conversation
--alphabetize
switch: Sorts output file consistently
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.
Love to see PRs like this! I’m in favor of this merging, but I’d like to see the tests moved out of snapshots and into unit tests where it makes sense.
@drwpow is there anything else I can do to help move this along? |
This looks great! Sorry for the delay; will merge this today. Just a heads up: this will be released in the |
Merged exactly as-is in #966. Just fixed the test error & merge conflict but made no changes. |
@all-contributors please add @MrLeebo for code, test |
I've put up a pull request to add @MrLeebo! 🎉 |
This PR adds a new
--alphabetize
switch that sorts the entries in the typescript output file alphabetically. This ensures the typescript file appears in a consistent sort order. Sometimes with dynamically generated docs, the order of the operations can change just depending on the timing of when each controller gets parsed. This can create trouble if you're checking your types into git. It can be difficult to review what changes were actually made when the only thing you can see in git diff is all of the operations being shuffled around.