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
While working on enum support in Ariadne I've found that enums values aren't validated against GraphQL enum when they are defined as fields on GraphQL schema.
Following schema passes validation:
enumRole {
ADMIN USER
}
typeQuery {
hello(r: Role = ADMIN): Stringcomplex(i: Test = { role: INVALID }): StringcomplexAlt(i: Test): String
}
inputTest {
ignore: Stringrole: Role = INVALID
}
I would've expected schema validators to raise INVALID, but instead those fields are quietly excluded from default value passed to field's resolver.
The text was updated successfully, but these errors were encountered:
Hello!
While working on enum support in Ariadne I've found that enums values aren't validated against GraphQL enum when they are defined as fields on GraphQL schema.
Following schema passes validation:
I would've expected schema validators to raise
INVALID
, but instead those fields are quietly excluded from default value passed to field's resolver.The text was updated successfully, but these errors were encountered: