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

toomuchdesign / json-schema-fns / 26313573779
100%

Build:
DEFAULT BRANCH: master
Ran 22 May 2026 09:47PM 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

22 May 2026 09:46PM UTC coverage: 100.0%. Remained the same
26313573779

push

github

web-flow
feat: preserve if/then/else conditionals and extend JSONSchemaType (#199)

## What kind of change does this PR introduce?

Bug fix + feature

## What is the current behaviour?

`sealSchemaDeep` / `unsealSchemaDeep` were mutating `if` / `then` /
`else` sub-schemas, silently changing which values triggered each
branch.

## What is the new behaviour?

Add the three keywords to the skip dispatch (runtime + type), mirroring
`not`.

Widen the top-level `type` field to `JSONSchemaType | readonly
JSONSchemaType[]` so schemas like `type: ['object', 'null']` are
accepted at the input boundary (previously rejected with TS2345).
`JSONSchemaObject` still requires the literal `'object'` form, so
object-shaped functions are unaffected.

## Does this PR introduce a breaking change?

No

## Other information:

## Please check if the PR fulfills these requirements:

- [X] Tests for the changes have been added
- [X] Docs have been added / updated
- [X] Relevant
[Changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
has been added

---------

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

92 of 92 branches covered (100.0%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

97 of 97 relevant lines covered (100.0%)

988.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26313573779.1 22 May 2026 09:47PM UTC 10
100.0
GitHub Action Run
Source Files on build 26313573779
  • Tree
  • List 10
  • 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 #26313573779
  • 0f14940a on github
  • Prev Build on master (#26291165043)
  • Next Build on master (#26327897060)
  • 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