Skip to content

Commit

Permalink
feat: always check all filer
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasBousselin committed Jan 24, 2025
1 parent 37a6fb0 commit 736a868
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/check_json_validity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ jobs:
sudo apt update && sudo apt install jq
- name: Check JSON-LD files
run: |
error=0
for file in $(find . -name "*.jsonld"); do
printf "Checking $file .. "
jq empty $file || exit 1
echo "OK"
done || exit 1
jq empty $file && echo "OK" || { error=1; echo "KO invalid JSON"; }
done
exit $error
shell: bash
- name: Check JSON files
run: |
error=0
for file in $(find . -name "*.json"); do
printf "Checking $file .. "
jq empty $file || exit 1
echo "OK"
done || exit 1
jq empty $file && echo "OK" || { error=1; echo "KO invalid JSON"; }
done
exit $error
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@
"@context": [
"https://easy-global-market.github.io/ngsild-api-data-models/aquac/HCMR-PilotSiteUseCase/jsonld-contexts/ifishienciHCMRcompouned.jsonld"
]
}
1 change: 0 additions & 1 deletion vessel/jsonld-contexts/vessel.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@
"unlocs": "https://uri.fiware.org/ns/data-models#unlocs",
"code": "https://uri.fiware.org/ns/data-models#code"
}
}

0 comments on commit 736a868

Please sign in to comment.