Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-python-jsonschema-objects
use-specification-obj.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use-specification-obj.patch of Package python-python-jsonschema-objects
Index: python_jsonschema_objects-0.5.1/python_jsonschema_objects/__init__.py =================================================================== --- python_jsonschema_objects-0.5.1.orig/python_jsonschema_objects/__init__.py +++ python_jsonschema_objects-0.5.1/python_jsonschema_objects/__init__.py @@ -125,10 +125,13 @@ class ObjectBuilder(object): DeprecationWarning, ) for uri, contents in resolved.items(): + schema = specification_uri or self.schema["$schema"] + if isinstance(schema, str): + schema = referencing.jsonschema.specification_with(schema) self.registry = self.registry.with_resource( "memory:" + uri, referencing.Resource.from_contents( - contents, specification_uri or self.schema["$schema"] + contents, schema ), )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor