Skip to content

Migrate from github.com/xeipuuv/gojsonschema to github.com/santhosh-tekuri/jsonschema/v5#2756

Merged
mtrmac merged 2 commits intocontainers:mainfrom
mtrmac:jsonschema
Mar 11, 2025
Merged

Migrate from github.com/xeipuuv/gojsonschema to github.com/santhosh-tekuri/jsonschema/v5#2756
mtrmac merged 2 commits intocontainers:mainfrom
mtrmac:jsonschema

Conversation

@mtrmac
Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac commented Mar 4, 2025

github.com/xeipuuv/gojsonschema has last had a commit in Oct 2020.

So, follow what github.com/opencontainers/image-spec did, and move to the same library that project uses.

Note that github.com/santhosh-tekuri/jsonschema/v6 already exists, but the goal is to decrease the dependency surface (to the little extent this matters, it's at most a test dependency anyway), so we prioritize using the older version.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Mar 11, 2025

LGTM

mtrmac added 2 commits March 11, 2025 18:52
…ekuri/jsonschema/v5

github.com/xeipuuv/gojsonschema has last had a commit in Oct 2020.

So, follow what github.com/opencontainers/image-spec did, and move to
the same library that project uses.

Note that github.com/santhosh-tekuri/jsonschema/v6 already exists,
but the goal is to decrease the dependency surface (to the little extent
this matters, it's at most a test dependency anyway), so we prioritize
using the older version.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac merged commit 99996a1 into containers:main Mar 11, 2025
10 checks passed
@mtrmac mtrmac deleted the jsonschema branch March 11, 2025 19:04
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.

2 participants