You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Variables are coerced twice during an execution when a field validation instrumentation is active #2458
Describe the bug
It looks like variables are coerced twice during an execution using graphql-java 16.2, once in execute and once in validateFieldsAndArguments. This breaks e.g. enums with non-default names.
I just noticed that we're not using the field validation correctly. Instead of using SimpleFieldValidation and adding rules, we were using a separate FieldValidationInstrumentation for each rule and chaining them together using ChainedInstrumentation. Fixing that will probably also fix this issue.
Thank you for your help!
Activity
dondonz commentedon Jul 19, 2021
Hi @jenssuhr,
I'm trying to investigate the issue but I can't reproduce the error. Could you please help me by expanding on your example?
Could you please paste here:
jenssuhr commentedon Jul 26, 2021
Hi, thanks for investigating! I'll try to add an example as soon as possible.
jenssuhr commentedon Jul 26, 2021
I just noticed that we're not using the field validation correctly. Instead of using
SimpleFieldValidationand adding rules, we were using a separateFieldValidationInstrumentationfor each rule and chaining them together usingChainedInstrumentation. Fixing that will probably also fix this issue.Thank you for your help!