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

Fallback to parent type annotations for @GQLOneOfInput #2322

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

kyri-petrou
Copy link
Collaborator

I'm migrating some inputs in one of the services, and found a small bug and an improvement that can be made to the derivation of @oneOf inputs:

Bug: The rendered @oneOf inputs are not correctly sorted by name

Improvement: Since the leaf classes of @GQLOneOfInput inputs must contain exactly 1 argument, we can use the description / directives annotated on the leaf class for the fields themselves

@kyri-petrou kyri-petrou merged commit 0b5347a into series/2.x Jul 1, 2024
10 checks passed
@kyri-petrou kyri-petrou deleted the use-parent-annotations-one-of branch July 1, 2024 09:30
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