Skip to content

Address deprecation warnings - #499

Open
yarikoptic wants to merge 2 commits into
datalad:mainfrom
yarikoptic:rf-fromjsonschema
Open

Address deprecation warnings#499
yarikoptic wants to merge 2 commits into
datalad:mainfrom
yarikoptic:rf-fromjsonschema

Conversation

@yarikoptic

Copy link
Copy Markdown
Member

FWIW&Disclaimer: some done with claude code assistance. I do not see any unique expression of anyone, so I do not think these changes could be claimed by anyone to be copyrightable if that matters.

yarikoptic and others added 2 commits May 12, 2026 22:03
`jsonschema.RefResolver` is deprecated as of jsonschema 4.18.0 in favor
of the `referencing` library, and merely importing it now triggers a
DeprecationWarning that fails test collection under strict warning
filters (e.g. datalad-extensions CI).

Switch all three usage sites (webcatalog, validate, test_schema) to
build a `referencing.Registry` from the schema store and pass it to
`Draft202012Validator(..., registry=...)`. `Resource.from_contents()`
infers the dialect from each schema's `$schema` field.

Bump the `jsonschema` requirement to `>= 4.18.0` since the `registry=`
kwarg only exists from that release; `referencing` ships as a
transitive dependency from the same version, so no explicit
`referencing` requirement is needed.

Co-Authored-By: Claude Code 2.1.140 / Claude Opus 4.7 <noreply@anthropic.com>
@netlify

netlify Bot commented May 15, 2026

Copy link
Copy Markdown

Deploy Preview for datalad-catalog canceled.

Name Link
🔨 Latest commit 2d78961
🔍 Latest deploy log https://app.netlify.com/projects/datalad-catalog/deploys/6a07088afd0afb000816ac3a

@yarikoptic
yarikoptic requested a review from jsheunis July 6, 2026 14:15
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.

ERROR tests - DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0,

1 participant