A repository for prototyping Mesh Cards as a potential new standard from the Cloud WS.
This project validates a BioData Catalyst
mesh card JSON file against a predefined JSON Schema.
schema.json
– JSON Schema defining the required structuresample.json
– Sample mesh card JSONvalidate.py
– Script to validatesample.json
againstschema.json
This project uses:
- Python 3.8+
jsonschema
Python package
We recommend using Conda to manage dependencies.
git clone [email protected]:ga4gh/mesh-card-schema.git
cd mesh-card-schema
conda create -n mesh-card-schema python=3.10
conda activate mesh-card-schema
pip install jsonschema
python validate.py
If valid, you’ll see:
✅ JSON is valid.
If there are validation errors, the script will print an error message and exit with code 1.