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

ota-meshi / eslint-plugin-json-schema-validator / 29001483576
91%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 07:25AM UTC
Jobs 1
Files 23
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

09 Jul 2026 07:25AM UTC coverage: 90.937% (+0.5%) from 90.399%
29001483576

push

github

web-flow
Add opt-in `mostSpecificErrorsOnly` option to `no-invalid` (#506)

* feat: add reduceErrors utility for collapsing cascading oneOf/anyOf errors

* feat(no-invalid): add mostSpecificErrorsOnly option

* docs(no-invalid): document mostSpecificErrorsOnly option + changeset

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test: cover umbrella-only fallback and 3+ branch reduceErrors cases

* test: cover sibling umbrellas, partial-overlap, multi-error branch, and deep nesting in reduceErrors

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor: simplify mostSpecific guard and expand variant error test coverage

- Simplify `mostSpecific` derivation in validator-factory to optional chaining
  (behaviorally identical for nullish/primitive options[0]).
- Add rule-level regression test for `anyOf` with mostSpecificErrorsOnly.
- Add reduceErrors regression test asserting a `oneOf` multi-match preserves
  the umbrella (ajv emits only the umbrella with no branch errors, so the
  "must match exactly one schema" cause is not masked).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor: reorder mostSpecificErrorsOnly schema and pass option explicitly

Move the mostSpecificErrorsOnly schema property after mergeSchemas to
match the documentation order, and extract context.options in the rule
file so the option is passed explicitly to the validator factory rather
than accessed there directly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

663 of 761 branches covered (87.12%)

Branch coverage included in aggregate %.

185 of 185 new or added lines in 3 files covered. (100.0%)

2869 of 3123 relevant lines covered (91.87%)

237.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29001483576.1 09 Jul 2026 07:25AM UTC 23
90.94
GitHub Action Run
Source Files on build 29001483576
  • Tree
  • List 23
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29001483576
  • 9f5f38bf on github
  • Prev Build on main (#29001337428)
  • Next Build on main (#29006383905)
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