Skip to content

NotImplementedError: anyOf is not supported as bare property #51

@hramasub

Description

@hramasub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions