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) Enum_Value Directive missing from Schema IDL #4596

Merged

Conversation

JELaVallee
Copy link
Contributor

@JELaVallee JELaVallee commented Aug 24, 2023

This is a bug-fix for #4594 and has been validated using the spec scenario created for triaging the initial issue.

Summary: Enum_Value nodes were not being traversed in the GraphQL::Schema:Addition AST-walk, resulting in any ENUM_VALUE targeted Directives not being added to the Schema IDL during document generation. This would produced incomplete IDL output that breaks downstream validators and codegenerators.


…t illustrates the issue of an `ENUM_VALUE` adjacent custom-directive not being included in the dumped IDL output. Only able to make it work by explicitly attaching the custom-directive to the `GraphQL::Schema` implementation directly. Going to investigate if this is something in the `GraphQL::Language` or perhaps in `GraphQL::Schema` itself.
…m` traversal on the `EnumValue` child nodes when the current node being evaluated is an `Enum`. Resolves the behavior described in rmosolgo#4594
@rmosolgo rmosolgo added this to the 2.0.27 milestone Aug 28, 2023
@rmosolgo
Copy link
Owner

Thanks for this fix!

@rmosolgo rmosolgo merged commit 4b46144 into rmosolgo:master Aug 28, 2023
13 checks passed
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.

None yet

2 participants