• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vektah / gqlparser
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/validator/imported/actions-deps-de759b0c8c
DEFAULT BRANCH: master
Repo Added 09 May 2018 07:49AM UTC
Files 56
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/enum-value-and-directive-uniqueness
branch: fix/enum-value-and-directive-uniqueness
CHANGE BRANCH
x
Reset
  • fix/enum-value-and-directive-uniqueness
  • WrapIfUnwrapped
  • add-schema-implements
  • add_error_column
  • allow-json-number
  • arg2map
  • build/migrate-yaml-v3-module
  • check-for-self-referential-directives
  • cleanup
  • coerce-value
  • coerce-variables
  • colocate-spec
  • consistent-collections
  • default-var-value
  • dependabot/github_actions/actions-deps-013bf0b14d
  • dependabot/github_actions/actions-deps-06c47a9d96
  • dependabot/github_actions/actions-deps-0d080bdfc2
  • dependabot/github_actions/actions-deps-167a898cab
  • dependabot/github_actions/actions-deps-262b37236a
  • dependabot/github_actions/actions-deps-a331d3ec2d
  • dependabot/github_actions/actions-deps-b5bd5a21f8
  • dependabot/github_actions/actions-deps-c4cc0bb5e9
  • dependabot/github_actions/actions-deps-ca90dd7130
  • dependabot/github_actions/actions-deps-d3eb564edb
  • dependabot/github_actions/actions-deps-e4eb14636d
  • dependabot/github_actions/actions-deps-ea2f213dad
  • dependabot/go_modules/actions-deps-55030fb405
  • dependabot/go_modules/actions-deps-ddf553c9d0
  • dependabot/go_modules/actions-deps-e0592cbbe8
  • dependabot/npm_and_yarn/validator/imported/actions-deps-04c8951b36
  • dependabot/npm_and_yarn/validator/imported/actions-deps-0ed3db9fe0
  • dependabot/npm_and_yarn/validator/imported/actions-deps-1185a39f81
  • dependabot/npm_and_yarn/validator/imported/actions-deps-14e12f3a00
  • dependabot/npm_and_yarn/validator/imported/actions-deps-1875f92edc
  • dependabot/npm_and_yarn/validator/imported/actions-deps-23fd34c2ce
  • dependabot/npm_and_yarn/validator/imported/actions-deps-28c06f70cd
  • dependabot/npm_and_yarn/validator/imported/actions-deps-30fa97e41a
  • dependabot/npm_and_yarn/validator/imported/actions-deps-44683e7d6f
  • dependabot/npm_and_yarn/validator/imported/actions-deps-482c5ae6e5
  • dependabot/npm_and_yarn/validator/imported/actions-deps-5d3735b78c
  • dependabot/npm_and_yarn/validator/imported/actions-deps-60f83fc3b8
  • dependabot/npm_and_yarn/validator/imported/actions-deps-698ce9d8a0
  • dependabot/npm_and_yarn/validator/imported/actions-deps-757adad05b
  • dependabot/npm_and_yarn/validator/imported/actions-deps-807db14d8a
  • dependabot/npm_and_yarn/validator/imported/actions-deps-8a5060b00a
  • dependabot/npm_and_yarn/validator/imported/actions-deps-8b4bdccbfb
  • dependabot/npm_and_yarn/validator/imported/actions-deps-8e6b994b08
  • dependabot/npm_and_yarn/validator/imported/actions-deps-95ed20c41c
  • dependabot/npm_and_yarn/validator/imported/actions-deps-974e508fc2
  • dependabot/npm_and_yarn/validator/imported/actions-deps-994ff37c49
  • dependabot/npm_and_yarn/validator/imported/actions-deps-9a1fd07f6a
  • dependabot/npm_and_yarn/validator/imported/actions-deps-a23cb908fc
  • dependabot/npm_and_yarn/validator/imported/actions-deps-af3d599d94
  • dependabot/npm_and_yarn/validator/imported/actions-deps-bcbc269680
  • dependabot/npm_and_yarn/validator/imported/actions-deps-bfa8aa6d75
  • dependabot/npm_and_yarn/validator/imported/actions-deps-c50f8009d8
  • dependabot/npm_and_yarn/validator/imported/actions-deps-c92160c12e
  • dependabot/npm_and_yarn/validator/imported/actions-deps-cf72c556cb
  • dependabot/npm_and_yarn/validator/imported/actions-deps-d263d934c5
  • dependabot/npm_and_yarn/validator/imported/actions-deps-de759b0c8c
  • dependabot/npm_and_yarn/validator/imported/actions-deps-defd35f26a
  • dependabot/npm_and_yarn/validator/imported/actions-deps-e251210794
  • dependabot/npm_and_yarn/validator/imported/actions-deps-e94782542e
  • dependabot/npm_and_yarn/validator/imported/actions-deps-f0182aa2ae
  • dependabot/npm_and_yarn/validator/imported/actions-deps-f09091c33a
  • dependabot/npm_and_yarn/validator/imported/babel/plugin-transform-modules-systemjs-7.29.4
  • dependabot/npm_and_yarn/validator/imported/babel/runtime-7.26.10
  • dependabot/npm_and_yarn/validator/imported/brace-expansion-1.1.12
  • dependabot/npm_and_yarn/validator/imported/brace-expansion-1.1.13
  • dependabot/npm_and_yarn/validator/imported/js-yaml-4.1.1
  • dependabot/npm_and_yarn/validator/imported/picomatch-2.3.2
  • deterministic_validation_order
  • errorposf_handle_nil_pos
  • extend-empty-validation
  • extends-missing
  • extract-walker
  • feat-duplicate-check
  • feat-empty-validate
  • feat-path
  • feat-reserved-name
  • fix-73
  • fix-arg-defaults
  • fix-fragment-definition-directive-vars
  • fix-infinit-loop
  • fix/issue-337
  • fix/lexer-control-char-error-hex
  • fix/rules
  • fix/schema-directives
  • fix/schema-directives-2
  • fix/syncmap/rules
  • fix_number_parsing
  • fixnil
  • fmterror
  • fuzz-inline-fragment
  • fz/formatter-nonintrospect-builtin
  • fz/safer-ArgumentMap
  • gh_lint
  • gomod
  • gqlerr-unwrap
  • increment_go_1_22
  • inferred-root-types
  • infinite-recursion
  • input-type-validation
  • integration-changes
  • interface-validation
  • issue-254-negative-columns
  • lbarthonet/default-value-args
  • lexer-off-by-1
  • lexer_tweak
  • lint_and_fmt
  • master
  • minor
  • nil-non-required-vars
  • no_marshal_position
  • null-embedded
  • panic-on-undefined-type-assertion
  • parsequerywithlimit
  • parser_limit_error
  • pluggable-coercion
  • prelude-support
  • quote-description-bug
  • redo_github_actions
  • refactor/rules2
  • refactor/rules3
  • release_script
  • remove-event-state
  • remove-old-diff-dependency
  • replacerule
  • revert-168-specified-by
  • scalar-leafs
  • scalar_leafs_without_suggestion
  • schema-default-values
  • separate-validation-parsing
  • shorten-test-names
  • single-field-selections
  • snyk-fix-4467374313a2fc745380bd5b7e7cf8ec
  • snyk-fix-bdbf2518e4ab8e057c9d65d60f2e77c5
  • stop-walk-on-error
  • test/rules
  • tweak-coverage
  • unique-argument-names
  • unique-directives-per-location
  • unique-fragment-names
  • unique-input-field-names
  • unique-operation-names
  • unique-variable-names
  • update_go_121
  • update_graphqljs_v16_12_0
  • update_modules
  • validate-implements
  • validate-input-usage
  • validation-positions
  • variable-validation-cleanup
  • variables-in-allowed-position
  • vb-vars
  • wrapnil

06 Jun 2026 08:55PM UTC coverage: 87.371% (+0.08%) from 87.295%
932

Pull #436

circleci

alex-dvoretsky_catonian
fix: reject duplicate enum values and repeated non-repeatable directives

LoadSchema silently merged duplicate enum values (no uniqueness check),
unlike object fields which already error with "Field X.Y can only be
defined once." Add the equivalent check for enum values, reported as
"Enum value X.Y can only be defined once."

Also enforce that a non-repeatable directive is applied at most once per
schema location during schema validation (the executable-document rule
in validator/rules already covers queries, but the type system was
unchecked). The check is scoped to single authored locations via a
singleLocation flag: a type's own directives are merged across its base
definition and every extension, which the spec treats as distinct
locations, so the merged list is exempt to avoid rejecting a directive
used once per location.

Adds YAML cases covering duplicate enum values (same definition and
across an extension), a repeated non-repeatable directive on a field and
on an enum value, and positive cases (repeatable directive, the same
directive on distinct locations, and a directive on a type plus its
extension).

Fixes #435
Pull Request #436: fix: reject duplicate enum values and repeated non-repeatable directives

38 of 38 new or added lines in 1 file covered. (100.0%)

5092 of 5828 relevant lines covered (87.37%)

1.01 hits per line

Relevant lines Covered
Build:
Build:
5828 RELEVANT LINES 5092 COVERED LINES
1.01 HITS PER LINE
Source Files on fix/enum-value-and-directive-uniqueness
  • Tree
  • List 56
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
932 fix/enum-value-and-directive-uniqueness fix: reject duplicate enum values and repeated non-repeatable directives LoadSchema silently merged duplicate enum values (no uniqueness check), unlike object fields which already error with "Field X.Y can only be defined once." Add the equivalen... Pull #436 06 Jun 2026 08:56PM UTC alex-dvoretsky_catonian circleci
87.37
931 fix/enum-value-and-directive-uniqueness fix: reject duplicate enum values and repeated non-repeatable directives LoadSchema silently merged duplicate enum values (no uniqueness check), unlike object fields which already error with "Field X.Y can only be defined once." Add the equivalen... Pull #436 06 Jun 2026 08:43PM UTC alex-dvoretsky_catonian circleci
87.35
930 fix/enum-value-and-directive-uniqueness fix: reject duplicate enum values and repeated non-repeatable directives LoadSchema silently merged duplicate enum values (no uniqueness check), unlike object fields which already error with "Field X.Y can only be defined once." Add the equivalen... Pull #436 05 Jun 2026 09:39AM UTC alex-dvoretsky_catonian circleci
87.35
See All Builds (780)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc