Skip to content

A python library to detect and output cycles in JSON schemas

License

Notifications You must be signed in to change notification settings

FAIRsharing/jsonCycles

Repository files navigation

Build Status Coverage Status

Create and use a virtual environment

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Run the tool from python (3.6+)

from jsonCycles.schemaResolver import SchemaResolver

if __name__ == '__main__':
    schema_url = "https://datatagsuite.github.io/schema/study_schema.json"
    schema_resolver = SchemaResolver(schema_url, 'URL')
    schema_resolver.schemas_to_graph()
    schema_resolver.show()

Run our Jupyter Notebook

jupyter notebook

notebooks/Finding_jsonCycles.ipynb#

About

A python library to detect and output cycles in JSON schemas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published