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

Implement schema validation #4

Open
8 of 14 tasks
klavs opened this issue Oct 3, 2019 · 0 comments
Open
8 of 14 tasks

Implement schema validation #4

klavs opened this issue Oct 3, 2019 · 0 comments

Comments

@klavs
Copy link
Contributor

klavs commented Oct 3, 2019

This is partially implemented, but still lacks majority of the rules.

Unlike graphql-js, there is no validation context given when validating a document. A schema validation rule should be self-sufficient and based only on the given AST document.
See https://github.com/gql-dart/gql/tree/master/gql/lib/src/validation.

  • LoneSchemaDefinition (ref)
  • UniqueOperationTypes (ref)
  • UniqueTypeNames (ref; issue)
  • UniqueEnumValueNames (ref)
  • UniqueFieldDefinitionNames (ref)
  • UniqueDirectiveNames (ref)
  • KnownTypeNames (ref; issue)
  • KnownDirectives (ref; issue)
  • UniqueDirectivesPerLocation (ref; issue)
  • PossibleTypeExtensions (ref; issue)
  • KnownArgumentNamesOnDirectives (ref; issue)
  • UniqueArgumentNames (ref; issue)
  • UniqueInputFieldNames (ref; issue)
  • ProvidedRequiredArgumentsOnDirectives (ref; issue)
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

No branches or pull requests

1 participant