Add --no-enum-sort flag to preserve spec-defined enum order#300
Merged
miniBill merged 1 commit intowolfadex:mainfrom Apr 20, 2026
Merged
Add --no-enum-sort flag to preserve spec-defined enum order#300miniBill merged 1 commit intowolfadex:mainfrom
miniBill merged 1 commit intowolfadex:mainfrom
Conversation
9fb4780 to
509af79
Compare
miniBill
requested changes
Apr 17, 2026
Collaborator
miniBill
left a comment
There was a problem hiding this comment.
Some small details, feel free to ignore the ones marked as nitpick.
d4a8bfc to
d323125
Compare
By default, enum variants are sorted alphabetically (existing behaviour). Passing --no-enum-sort preserves the order defined in the OpenAPI spec, which is useful when enum order is meaningful (e.g. status workflows).
miniBill
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default, enum variants are sorted alphabetically. Passing
--no-enum-sortpreserves the order defined in the OpenAPI spec, which is useful when enum order is meaningful (e.g. status workflows).