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

kcl-lang / kcl-go / 26433870726
26%
main: 26%

Build:
Build:
LAST BUILD BRANCH: fix-nil-deref-on-oneof-ref
DEFAULT BRANCH: main
Ran 26 May 2026 05:35AM UTC
Jobs 6
Files 100
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

26 May 2026 05:19AM UTC coverage: 26.072% (+0.01%) from 26.062%
26433870726

Pull #544

github

sethreidnz
fix: guard nil currentState.Local in Ref._resolveRef

NewValidationState only sets Root, not Local, so importing a JSON
schema that contains a non-local $ref crashes with a nil pointer
dereference at keywords_core.go:302. This happens for any top-level
oneOf of sibling-file refs, e.g. the per-file output produced by
the typespec json-schema emitter.

Guard the dereference so the importer falls through to its existing
unresolved-ref path (warn + treat as any), which is what the rest
of the code already expects.

Adds a regression test case (oneof_with_refs) that panics on main
without this change.

Signed-off-by: Seth Reid <contact@sethreid.co.nz>
Pull Request #544: fix: guard nil currentState.Local in Ref._resolveRef

0 of 3 new or added lines in 1 file covered. (0.0%)

4063 of 15584 relevant lines covered (26.07%)

1.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
0.0
0.0% pkg/3rdparty/jsonschema/keywords_core.go
Jobs
ID Job ID Ran Files Coverage
1 26433870726.1 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
2 26433870726.2 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
3 26433870726.3 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
4 26433870726.4 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
5 26433870726.5 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
6 26433870726.6 26 May 2026 05:35AM UTC 100
26.07
GitHub Action Run
Source Files on build 26433870726
  • Tree
  • List 100
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #544
  • PR Base - main (#26388104126)
  • 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