Skip to content

Commit

Permalink
update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jun 17, 2024
1 parent 125993b commit 71e0799
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
with:
python-version: 3.12
- name: Install dependencies
# TODO update to install from the latest version on reproschema
# once https://github.com/ReproNim/reproschema-py/pull/40 has been merged and a new release has been made.
# TODO This installs reproschema from source and not from pypi
# This may not be the optimal way of doing it.
run: |
python -m pip install --upgrade pip setuptools
pip install git+https://github.com/Remi-Gau/reproschema-py.git@skip
pip install git+https://github.com/ReproNim/reproschema-py.git
- name: Test with pyshacl
run: |
python scripts/jsonParser.py
Expand Down
1 change: 0 additions & 1 deletion examples/activities/items/item2.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@type": "VideoObject",
"contentUrl": "http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp4"
},
"imageUrl": "http://example.com/sample-image.jpg",
"ui": {
"inputType": "float"
},
Expand Down
1 change: 1 addition & 0 deletions scripts/jsonParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
if os.path.basename(root) in schema_dirs:
for name in files:
with open(os.path.join(root, name)) as fp:
print(f" trying parsing {root}/{name} as json")
try:
tested += 1
json.load(fp)
Expand Down

0 comments on commit 71e0799

Please sign in to comment.