diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 4c43e3f..4cdb8e5 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index 6fc9b3f..777772d 100644 --- a/Makefile +++ b/Makefile @@ -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: