Skip to content

fix(dtql): migrate jsonschema from v5 to v6#81

Merged
trakhimenok merged 1 commit into
mainfrom
fix/jsonschema-v6-migration
Jun 13, 2026
Merged

fix(dtql): migrate jsonschema from v5 to v6#81
trakhimenok merged 1 commit into
mainfrom
fix/jsonschema-v6-migration

Conversation

@trakhimenok

Copy link
Copy Markdown
Contributor

Summary

  • Updates dtql/validate_test.go to use the jsonschema v6 API
  • Fixes the two breaking API changes: c.Draft field → c.DefaultDraft() method, and AddResource now takes any instead of io.Reader (use jsonschema.UnmarshalJSON first)
  • Removes v5 from go.mod; adds golang.org/x/text as a new indirect dep from v6

Unblocks Renovate PR #80, which will auto-close once this merges.

Test plan

  • go test ./... passes locally (all 17 packages green)
  • CI passes

🤖 Generated with Claude Code

Update dtql/validate_test.go to use the v6 API:
- Replace c.Draft field assignment with c.DefaultDraft() method call
- Replace io.Reader arg in AddResource with jsonschema.UnmarshalJSON output

Fixes the failing Renovate PR #80.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@trakhimenok trakhimenok enabled auto-merge (squash) June 13, 2026 20:37
@trakhimenok trakhimenok merged commit d6668d5 into main Jun 13, 2026
12 checks passed
@trakhimenok trakhimenok deleted the fix/jsonschema-v6-migration branch June 13, 2026 20:37
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