Skip to content

Problem with top-level oneOf construct and validation #169

@wshayes

Description

@wshayes

Having trouble with the validation error for a top-level oneOf jsonschema construct. I've put an example script together showing the problem where I have a missing 'id' property that is required. https://gist.github.com/7bb4118cfe21b962cdc1.git

The error I get is:

jsonschema.exceptions.ValidationError: {u'graph': {u'label': u'testlabel'}} is not valid under any of the given schemas

Failed validating u'oneOf' in schema:

followed by the entire schema file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions