Skip to content

fleur/jsonschema-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

The project schema inherits from the container schema, which inherits from the generic schema.

The JSON schema files are all located in the same directory.

Run:

python validate.py

Note line 7 of container:

"allOf": [ { "$ref": "file:schemas/generic.json" } ],

And line 7 of project.json:

"allOf": [ { "$ref": "file:schemas/container.json" } ],

If you change line 7 of container.json to this, and only container.json, NOT project.json, it works as expected (which is the schema validation fails with the required property of 'name' missing):

"allOf": [ { "$ref": "file:generic.json" } ],

About

possible bug in python jsonschema package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages