Skip to content

Commit

Permalink
Update lockfile to test with new GraphQL core release. (#877)
Browse files Browse the repository at this point in the history
* Update lockfile to test with new GraphQL core release.

* Allow the new specifiedBy directive.

* Fix typo.

* Delint.
  • Loading branch information
obi1kenobi authored Jul 7, 2020
1 parent bee6165 commit fda23f4
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 80 deletions.
153 changes: 78 additions & 75 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions graphql_compiler/compiler/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,18 @@ def validate_schema_and_query_ast(schema, query_ast):
]
)

# This directive is supported and ignored by the compiler, since it is meant as an indication
# to the user that a field should not be used.
supported_default_directive = frozenset(
# The following directives are supported and ignored by the compiler,
# since they are meant to communicate user-facing information.
supported_default_directives = frozenset(
[
frozenset(
[
"deprecated",
frozenset([DirectiveLocation.FIELD_DEFINITION, DirectiveLocation.ENUM_VALUE]),
frozenset(["reason"]),
]
)
),
frozenset(["specifiedBy", frozenset([DirectiveLocation.SCALAR]), frozenset(["url"]),]),
]
)

Expand Down Expand Up @@ -111,7 +112,7 @@ def validate_schema_and_query_ast(schema, query_ast):
actual_directives
- expected_directives
- unsupported_default_directives
- supported_default_directive
- supported_default_directives
)
if extra_directives:
extra_message = (
Expand Down

0 comments on commit fda23f4

Please sign in to comment.