Skip to content

build(deps): bump github.com/kaptinlin/jsonschema from 0.7.7 to 0.8.0#317

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

build(deps): bump github.com/kaptinlin/jsonschema from 0.7.7 to 0.8.0#317
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 5, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/kaptinlin/jsonschema from 0.7.7 to 0.8.0.

Release notes

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

v0.8.0

Localization moved to the optional i18n subpackage

The root package no longer imports any translation framework. Pure validation users pay zero Intl compile, link, and binary cost — 28 transitive packages dropped from the root import graph, and not a single byte of locale data ends up in your binary unless you opt in.

Localization is now opt-in through the consumer-side Translator interface:

type Translator interface {
    Translate(code string, params map[string]any) (message string, ok bool)
}

The i18n subpackage provides the built-in 9-locale implementation (backed by go-i18n); or implement the one-method interface yourself with any backend.

Migration

Before After
jsonschema.I18n() + bundle.NewLocalizer("zh-Hans") i18n.New("zh-Hans") — import github.com/kaptinlin/jsonschema/i18n
err.Localize(localizer) err.Localize(translator)
result.ToLocalizeList(localizer, ...) result.ToLocalizedList(translator, ...)
result.DetailedErrors(localizer) result.LocalizedDetailedErrors(translator)
result.DetailedErrors() unchanged — always English, no arguments
import (
    "github.com/kaptinlin/jsonschema"
    "github.com/kaptinlin/jsonschema/i18n"
)
zh, err := i18n.New("zh-Hans") // one translator per locale; unknown locale errors here
if err != nil { ... }
for path, msg := range result.LocalizedDetailedErrors(zh) {
fmt.Println(path, msg)
}

Behavior

  • Fallback semantics unchanged: a nil translator or a missing translation falls back to the built-in English message — localization never fails.
  • Same 9 built-in locales: en, de-DE, es-ES, fr-FR, ja-JP, ko-KR, pt-BR, zh-Hans, zh-Hant.
  • i18n.New rejects unknown locales with ErrUnsupportedLocale instead of silently falling back to English.

Dependencies

  • go-i18n upgraded to v0.5.0 (now uses messageformat-go/mf1 v0.7.0).

Full Changelog: kaptinlin/jsonschema@v0.7.18...v0.8.0

... (truncated)

Commits
  • a715cac feat!: move localization to optional i18n subpackage
  • 2b98775 chore(deps): upgrade go-i18n to v0.4.11
  • 3e0b491 chore(deps): update go-i18n
  • 0cb442f fix: fall back on missing localized errors
  • f670d64 fix: resolve delayed refs in all schema branches
  • 277ccd5 build(deps): require go 1.26.4
  • 4387fbf chore(deps): refresh dependencies
  • f6fee42 fix: resolve delayed relative references
  • cd916ae fix: resolve encoded JSON Pointer references
  • 262fbdb fix: resolve JSON Pointer subschema references
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jun 5, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Assignees

The following users could not be added as assignees: rustatian. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.0 branch from b0ae954 to 132407d Compare June 6, 2026 16:45
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.0 branch from 132407d to 80884d4 Compare June 13, 2026 23:10
Bumps [github.com/kaptinlin/jsonschema](https://github.com/kaptinlin/jsonschema) from 0.7.7 to 0.8.0.
- [Release notes](https://github.com/kaptinlin/jsonschema/releases)
- [Commits](kaptinlin/jsonschema@v0.7.7...v0.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.0 branch from 80884d4 to 3646b02 Compare June 13, 2026 23:23
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