-
Notifications
You must be signed in to change notification settings - Fork 91
Description
This code
``
with open('ComputerSystemCollection.json') as schema_file:
root_schema = json.load(schema_file)
builder = pjso.ObjectBuilder (root_schema)
ns = builder.build_classes()
``
to generate binding for the following schema:
http://redfish.dmtf.org/schemas/v1/ComputerSystemCollection.json
results in the following error:
Traceback (most recent call last):
File "./test.py", line 14, in
ns = builder.build_classes()
File "/usr/lib/python2.7/site-packages/python_jsonschema_objects/init.py", line 78, in build_classes
builder.construct(uri, defn)
File "/usr/lib/python2.7/site-packages/python_jsonschema_objects/classbuilder.py", line 418, in construct
ret = self._construct(uri, _args, *_kw)
File "/usr/lib/python2.7/site-packages/python_jsonschema_objects/classbuilder.py", line 426, in _construct
"anyOf is not supported as bare property")
NotImplementedError: anyOf is not supported as bare property