Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json schema validation is fails on empty graph #53

Open
schaumb opened this issue Mar 22, 2021 · 3 comments
Open

json schema validation is fails on empty graph #53

schaumb opened this issue Mar 22, 2021 · 3 comments

Comments

@schaumb
Copy link

schaumb commented Mar 22, 2021

Json schema fails on empty graph.

The python testcase is missing. The https://www.jsonschemavalidator.net/ and the python validator are shows the error.

image

@schaumb schaumb changed the title json schema fails on empty graph json schema validation is fails on empty graph Mar 23, 2021
@wshayes
Copy link
Member

wshayes commented Mar 23, 2021

Not sure I'm following - it should fail on an empty graph object as there are required properties in the graph object.

Are you saying it should not fail? or that we have a test that is passing that should fail?

@schaumb
Copy link
Author

schaumb commented Mar 23, 2021

Schema:
https://github.com/jsongraph/json-graph-specification/blob/ce5ed4007c61df23dd0835094a7b69364ab445d9/json-graph-schema_v2.json

Graph:

Examples

Additional examples
empty single graph

{
  "graph": {}
}

The documentation says this is the empty graph representation.
The schema is failing on this graph, because oneOf matches on multiple subschema (see: img).

This empty graph is not tested in the test directory.

@wshayes
Copy link
Member

wshayes commented Mar 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants