From e00eb502a4ce8f94b9f2d4a3830536e2d4a5b945 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Tue, 14 May 2024 04:05:50 +0200 Subject: [PATCH] install jsonlint --- .github/workflows/validate.yml | 1 + Makefile | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) 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: