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

ghga-de / ghga-jsonsubschema / 28808579241
83%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feature/improve-package-quality-gsi-2374
DEFAULT BRANCH: main
Ran 06 Jul 2026 04:57PM UTC
Jobs 1
Files 10
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 Jul 2026 04:55PM UTC coverage: 83.452% (+2.3%) from 81.17%
28808579241

Pull #15

github

Cito
Support exact negation of integer schemas

Negating an integer schema no longer raises UnsupportedNegatedNumeric
but yields the exact complement: all non-numeric types, the integers
outside the bounds, and "number but not an integer", represented by
the standard fragment {"not": {"multipleOf": 1}} embedded in a number
schema and a notInteger flag that meet/join/is_subtype and the
uninhabited check understand. A trivial multipleOf of 1 is negated as
the integer case; only non-trivial multipleOf negation still raises.

Unions produced by negation record the negated schema, so subtyping
against them reduces to an exact emptiness test of the meet. Other
unions involving not-integer schemas are decided by an exact coverage
check across all members, since no single member needs to contain the
left-hand side.

Also fix pre-existing defects surfaced while verifying soundness:
- subtyping against a negated number range whose gap contains no
  integer wrongly returned False for integer schemas
- the uninhabited check for multipleOf ignored zero and negative
  multiples within the bounds; it now tests exactly whether a
  multiple exists in the interval
- enum values were validated against the latest jsonschema draft,
  crashing on draft-4 boolean exclusiveMinimum/exclusiveMaximum; they
  are now validated with the configured draft, extended so that
  int-equivalent floats count as integers
- subtype checks of single-value numeric schemas and of integers
  against fractional multipleOf factors (e.g. 0.5) are now exact
Pull Request #15: Improve package quality (GSI-2374)

634 of 812 branches covered (78.08%)

Branch coverage included in aggregate %.

392 of 440 new or added lines in 5 files covered. (89.09%)

15 existing lines in 2 files now uncovered.

1353 of 1569 relevant lines covered (86.23%)

0.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
80.51
3.67% src/jsonsubschema/_checkers.py
5
92.68
-2.35% src/jsonsubschema/_canonicalization.py
5
87.21
3.02% src/jsonsubschema/_utils.py
4
83.33
-2.87% src/jsonsubschema/exceptions.py

Coverage Regressions

Lines Coverage ∆ File
11
80.51
3.67% src/jsonsubschema/_checkers.py
4
92.68
-2.35% src/jsonsubschema/_canonicalization.py
Jobs
ID Job ID Ran Files Coverage
1 28808579241.1 06 Jul 2026 04:57PM UTC 10
83.45
GitHub Action Run
Source Files on build 28808579241
  • Tree
  • List 10
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #15
  • PR Base - main (#26081500489)
  • Delete
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