Files
Philip Conrad 45a3d8ee70 internal: Vendor gqlparser library. (#5067)
This commit addresses issues around vendoring the 3rd party GraphQL
parser library, `vektah/gqlparser`, which is used by our GraphQL builtins.

By directly depending on the library, we accidentally forced all of our
library users to have to match `gqlparser` versions, which could cause
problems if they wanted to use downstream GraphQL libraries.

To fix this version clash problem, this PR internalizes `vektah/gqlparser`
v2.4.8 into the `internal/gqlparser` package (we can update to v2.5.0
later). Scripts are included to automate some of the internalizing
process if we wish to update the library in the future.

Fixes: #5065

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2022-08-30 14:47:39 -04:00

29 lines
1.4 KiB
YAML

- rule: 'ExecutableDefinitionsRule/.*'
skip: "These are impossible to generate because the parser is split between Query and Schema"
- rule: 'FieldsOnCorrectType/Defined on implementors but not on interface'
errors:
- message: Cannot query field "nickname" on type "Pet". Did you mean to use an inline fragment on "Cat" or "Dog"?
locations:
- {line: 3, column: 9}
- rule: 'KnownDirectivesRule/within schema language/with misplaced directives'
skip: "When the syntax of schema is mixed in query, parser can't consume schema syntax and ignore it"
- rule: 'KnownTypeNamesRule/ignores type definitions'
skip: "When the syntax of schema is mixed in query, parser can't consume schema syntax and ignore it"
- rule: 'OverlappingFieldsCanBeMergedRule/return types must be unambiguous/reports correctly when a non-exclusive follows an exclusive'
skip: "Spec issue? scalar is not exists on SomeBox"
- rule: 'ValuesOfCorrectTypeRule/.*custom scalar.*'
skip: "Custom scalars are a runtime feature, maybe they dont belong in here?"
- rule: 'NoDeprecatedCustomRule/.*'
skip: "This rule is optional and is not part of the Validation section of the GraphQL Specification"
- rule: 'NoSchemaIntrospectionCustomRule/.*'
skip: "This rule is optional and is not part of the Validation section of the GraphQL Specification"
- rule: 'KnownTypeNamesRule/references to standard scalars that are missing in schema'
skip: "standard scalars must be exists in schema"