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

vektah / gqlparser / 933
87%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2026 11:56PM UTC
Jobs 1
Files 56
Run time 1min
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

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

push

circleci

web-flow
fix: reject duplicate enum values and repeated non-repeatable directives (#436)

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

Co-authored-by: Alexander Dvoretsky <alex.dvoretsky+catonian@catonetworks.com>

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

Jobs
ID Job ID Ran Files Coverage
1 933.1 06 Jun 2026 11:56PM UTC 56
87.37
CircleCI Job
Source Files on build 933
  • Tree
  • List 56
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #933
  • 807d6277 on github
  • Prev Build on master (#929)
  • Next Build on master (#935)
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