Skip to content

chore(deps): bump github.com/kaptinlin/jsonschema from 0.8.1 to 0.9.3#26

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/kaptinlin/jsonschema-0.9.3
Open

chore(deps): bump github.com/kaptinlin/jsonschema from 0.8.1 to 0.9.3#26
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/kaptinlin/jsonschema-0.9.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/kaptinlin/jsonschema from 0.8.1 to 0.9.3.

Release notes

Sourced from github.com/kaptinlin/jsonschema's releases.

v0.9.0

Multi-draft validation

jsonschema now validates Draft 2019-09, Draft-07, Draft-06, and Draft-04 in addition to Draft 2020-12, selected automatically from each schema's $schema. When a schema omits $schema it defaults to Draft 2020-12, so existing code is unaffected.

// Opt a $schema-less schema into a specific draft:
compiler := jsonschema.NewCompiler().SetDefaultDialect(jsonschema.Draft7)

Each dialect's keyword semantics are honored — Draft-04 id, boolean exclusiveMinimum/exclusiveMaximum, dependencies (→ dependentRequired/dependentSchemas), tuple items + additionalItems, and Draft 2019-09 $recursiveRef/$recursiveAnchor (mapped to dynamic refs). Behavior is verified against the official JSON Schema Test Suite for all five drafts.

New API

  • Dialect type with constants Draft202012, Draft201909, Draft7, Draft6, Draft4
  • (*Compiler).SetDefaultDialect(Dialect) — dialect used when a schema has no $schema (default Draft202012)
  • (*Schema).Dialect() — the resolved dialect of a compiled schema
  • Schema.Comment and Schema.Vocabulary typed fields for $comment and $vocabulary

Dialect-aware keyword recognition

A keyword is recognized only under the dialects that define it; anything else is preserved verbatim in Schema.Extra (with SetPreserveExtra(true)) and ignored for validation. $comment and $vocabulary are modeled as fields and round-trip cleanly.

Performance

The compile/parse path was reworked: schema objects decode in a single pass, the dialect walk allocates nothing, and unknown keywords are decoded lazily. newSchema allocations dropped ~73% and bytes ~55% on a representative schema.

Compatibility

Purely additive. Default Draft 2020-12 validation is unchanged for valid schemas, and the Schema.Extra contract matches v0.8.x. No breaking changes.

Full Changelog: kaptinlin/jsonschema@v0.8.1...v0.9.0

Commits
  • e39feff fix: support updated dependencies
  • 2910757 Merge pull request #121 from kaptinlin/dependabot/github_actions/actions/chec...
  • 5e748dd chore(deps): bump actions/checkout from 6 to 7
  • 0366ea3 fix: validate recursive schema instances precisely
  • 1de9fd1 fix: add schema meta-validation
  • 9803039 fix: make keyword recognition dialect-aware so Extra round-trips
  • 6857dfa feat: add multi-draft dialect support with optimized schema decoding
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/kaptinlin/jsonschema](https://github.com/kaptinlin/jsonschema) from 0.8.1 to 0.9.3.
- [Release notes](https://github.com/kaptinlin/jsonschema/releases)
- [Commits](kaptinlin/jsonschema@v0.8.1...v0.9.3)

---
updated-dependencies:
- dependency-name: github.com/kaptinlin/jsonschema
  dependency-version: 0.9.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants