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

fix: Sort arguments by name in SDL #183

Merged
merged 1 commit into from
Feb 2, 2025
Merged

fix: Sort arguments by name in SDL #183

merged 1 commit into from
Feb 2, 2025

Conversation

stuebingerb
Copy link
Owner

SchemaPrinter already sorts types and fields by name but similar sorting for arguments was missing. Arguments in GraphQL are unordered, so let's make it consistent and a bit more readable.

Also fixes test setups by enforcing unique names for input objects (cf. #167) and skips checking input objects for null or empty input fields, as they must have at least one.

`SchemaPrinter` already sorts types and fields by name but similar
sorting for arguments was missing. Arguments in GraphQL are unordered,
so let's make it consistent and a bit more readable.

Also fixes test setups by enforcing unique names for input objects
(cf. #167) and skips checking input objects for null or empty input
fields, as they must have at least one.
@stuebingerb stuebingerb merged commit 69b94fc into main Feb 2, 2025
5 checks passed
@stuebingerb stuebingerb deleted the fix/sorted-sdl branch February 2, 2025 08:29
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.

2 participants