We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72e2ebf + f58d88c commit 7f781d9Copy full SHA for 7f781d9
python_jsonschema_objects/__init__.py
@@ -125,11 +125,14 @@ def file_and_memory_handler(uri):
125
DeprecationWarning,
126
)
127
for uri, contents in resolved.items():
128
+ from referencing.jsonschema import specification_with
129
+
130
+ specification = specification_with(
131
+ specification_uri or self.schema["$schema"]
132
+ )
133
self.registry = self.registry.with_resource(
134
"memory:" + uri,
- referencing.Resource.from_contents(
- contents, specification_uri or self.schema["$schema"]
- ),
135
+ referencing.Resource.from_contents(contents, specification),
136
137
138
validatorClass = jsonschema.validators.validator_for(
0 commit comments