Skip to content

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

Merged
MikeDev101 merged 1 commit into
mainfrom
dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.1
Jun 19, 2026
Merged

chore(deps): bump github.com/kaptinlin/jsonschema from 0.7.13 to 0.8.1#22
MikeDev101 merged 1 commit into
mainfrom
dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.1

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

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

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
  • 8200a44 chore(deps): update go-i18n integration
  • cd7e19a fix: preserve remote schema error causes
  • 5cd1b76 refactor: validate JSON pointer references
  • 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
  • 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 18, 2026
Bumps [github.com/kaptinlin/jsonschema](https://github.com/kaptinlin/jsonschema) from 0.7.13 to 0.8.1.
- [Release notes](https://github.com/kaptinlin/jsonschema/releases)
- [Commits](kaptinlin/jsonschema@v0.7.13...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/kaptinlin/jsonschema
  dependency-version: 0.8.1
  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.1 branch from 0133ee4 to 591de05 Compare June 19, 2026 19:00
@MikeDev101 MikeDev101 merged commit 608fc27 into main Jun 19, 2026
@dependabot dependabot Bot deleted the dependabot/go_modules/github.com/kaptinlin/jsonschema-0.8.1 branch June 19, 2026 19:01
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.

1 participant