Remove unit and definition fields from schema and terms, get from CV… #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate JSON Schemas | |
on: push | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install jsonschema==3.2.0 | |
- name: Get JSON Schema schema | |
run: | | |
curl http://json-schema.org/draft-07/schema# -o schema-draft-07.json | |
- name: Validate peak annotation schema | |
run: | | |
jsonschema \ | |
-i specification/peak-annotation-format/annotation-schema.json \ | |
schema-draft-07.json | |
- name: Validate peak annotation examples | |
run: | | |
jsonschema \ | |
-i specification/peak-annotation-format/annotation-example-1.json \ | |
-i specification/peak-annotation-format/annotation-example-2.json \ | |
-i specification/peak-annotation-format/annotation-example-3.json \ | |
specification/peak-annotation-format/annotation-schema.json |