Skip to content

⬆️ chore(deps): migrate jsonschema from v5 to v6 - #25

Merged
konih merged 4 commits into
mainfrom
lane/jsonschema-v6
Aug 12, 2026
Merged

⬆️ chore(deps): migrate jsonschema from v5 to v6#25
konih merged 4 commits into
mainfrom
lane/jsonschema-v6

Conversation

@konih

@konih konih commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace jsonschema/v5 with v6.0.3 (the Renovate major branch was not mergeable: dual require + incomplete go.sum).
  • Adapt compile (UnmarshalJSON + AddResource) and pointer extraction via kind.Required / kind.AdditionalProperties.
  • Guard: hack/test/jsonschema_v6_test.sh fails if v5 remains in go.mod.
  • golang.org/x/text moves to v0.39.0 (GO-2026-5970) because v6 uses it; x/mod follows as a direct import of internal/render.

Test plan

  • Guard red on v5 go.mod, green after
  • go test ./internal/validate/ (pointered violations still hold)
  • task check green locally
  • CI green

Renovate's major branch added v6 beside v5 and left go.sum incomplete.
Compile via UnmarshalJSON+AddResource, map Required/AdditionalProperties
kinds to JSON pointers, and gate go.mod so v5 cannot return.
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/validate/validate.go 88.57% 2 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

konih added 3 commits August 13, 2026 00:44
v6 ValidationError.Error panics when ErrorKind is nil; the leaf/fallback
paths now use a nil-safe message helper, proven by package tests.
@sonarqubecloud

Copy link
Copy Markdown

@konih
konih merged commit 80c0e88 into main Aug 12, 2026
11 checks passed
@konih
konih deleted the lane/jsonschema-v6 branch August 12, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant