We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0 the RefResolver has been deprecated in favor of referencing library which requires a bit of work to change the codebase. This will impact the way we call custom_validator method
custom_validator
buildtest/buildtest/schemas/defaults.py
Lines 84 to 112 in ba44c82
What we need to do
jsonschema < 4.18
jsonschema >= 4.18
schema_table
To summarize the following line needs to be changed since resolver needs to be handled via Registry().with_resource()
resolver
Registry().with_resource()
resolver = RefResolver.from_schema( schema_table["definitions.schema.json"]["recipe"], store=schema_store )
For more details also check out https://python-jsonschema.readthedocs.io/en/stable/referencing/
The text was updated successfully, but these errors were encountered:
@Xiangs18 i created a PR #1793 so feel free to get started from here.
Sorry, something went wrong.
this was addressed in #1802
Successfully merging a pull request may close this issue.
According to https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0 the RefResolver has been deprecated in favor of referencing library which requires a bit of work to change the codebase. This will impact the way we call
custom_validator
methodbuildtest/buildtest/schemas/defaults.py
Lines 84 to 112 in ba44c82
What we need to do
jsonschema < 4.18
tojsonschema >= 4.18
schema_table
may not be needed we need to update all references.To summarize the following line needs to be changed since
resolver
needs to be handled viaRegistry().with_resource()
For more details also check out https://python-jsonschema.readthedocs.io/en/stable/referencing/
The text was updated successfully, but these errors were encountered: