Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefResolver will be deprecated in jsonschema #112

Closed
jpmckinney opened this issue Feb 23, 2023 · 7 comments
Closed

RefResolver will be deprecated in jsonschema #112

jpmckinney opened this issue Feb 23, 2023 · 7 comments

Comments

@jpmckinney
Copy link
Contributor

jpmckinney commented Feb 23, 2023

See python-jsonschema/jsonschema#1049

Affects CustomRefResolver.

New docs: https://python-jsonschema.readthedocs.io/en/stable/referencing/

I think this mainly requires following this example https://python-jsonschema.readthedocs.io/en/stable/referencing/#automatically-retrieving-resources-over-http

And replacing references to self.store and self.handlers per https://python-jsonschema.readthedocs.io/en/stable/referencing/#migrating-from-refresolver

@jpmckinney
Copy link
Contributor Author

jpmckinney commented Feb 23, 2023

Hmm, not sure why jsonschema was locked in 0.26.1 #94. Log message just mentions:

we use internal tools that are not available in V4

But there is no discussion anywhere of what these "internal tools" are.

@jpmckinney
Copy link
Contributor Author

Ah, lib-cove uses the non-public module jsonschema._utils...

@jpmckinney
Copy link
Contributor Author

jsonschema v4 can be allowed via #113

@jpmckinney
Copy link
Contributor Author

Closed via #113

@jpmckinney
Copy link
Contributor Author

Oops, nevermind, would still need to update the deprecated usage.

@jpmckinney jpmckinney reopened this Mar 10, 2023
@jpmckinney
Copy link
Contributor Author

v4.18 is live now, so I'll make a PR.

@jpmckinney
Copy link
Contributor Author

Closed by #142 (adapts #123).

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 a pull request may close this issue.

1 participant