Skip to content

Commit

Permalink
install jsonlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed May 14, 2024
1 parent 886ea3b commit e00eb50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install reproschema
npm install -g jsonlint
- name: validate
run: make validate
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ clean_artemis:

validate: validate_syntax validate_schema

package.json:
npm install `cat npm-requirements.txt`

# Validate jsonld
validate_syntax: package.json
grep -r "@context" response_options | cut -d: -f1 | xargs -I fname jsonlint -q fname
grep -r "@context" schemas | cut -d: -f1 | xargs -I fname jsonlint -q fname
validate_syntax:
grep -r "@context" response_options | cut -d: -f1 | xargs -I {} jsonlint -q {}
grep -r "@context" schemas | cut -d: -f1 | xargs -I {} jsonlint -q {}

# you will need to install reproschema-py to run this one ( pip install reproschema )
validate_schema:
Expand Down

0 comments on commit e00eb50

Please sign in to comment.