We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I thought the following example would result in validation errors, but it passes without error.
Are directive arguments not checked by validation? ...or have I done something silly?
package main import ( "github.com/vektah/gqlparser/ast" "github.com/vektah/gqlparser/parser" "github.com/vektah/gqlparser/validator" ) func main() { schema := ` scalar Int directive @foo(bla: Int!) on FIELD_DEFINITION type P { f: Int @foo(bla: "asdf") g: Int @foo(notblaa: "asdf") h: Int @foo } ` doc, gqlErr := parser.ParseSchema(&ast.Source{Input: schema}) if gqlErr != nil { panic(gqlErr) } _, gqlErr = validator.ValidateSchemaDocument(doc) if gqlErr != nil { panic(gqlErr) } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I thought the following example would result in validation errors, but it passes without error.
Are directive arguments not checked by validation? ...or have I done something silly?
The text was updated successfully, but these errors were encountered: