diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 000000000..cf5b02354 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,23 @@ +name: validate + +on: + pull_request: + workflow_dispatch: + +jobs: + validate: + runs-on: ubuntu-latest + env: + BUNDLE_WITH: test jekyll_plugins + SITE_ID: 'cookbook' # which iiif site this is + URL: 'https://preview.iiif.io' + + steps: + - name: Check out this repository + uses: actions/checkout@v5 + + - name: Run IIIF validator + uses: IIIF/presentation-validator@main + with: + directory: source/presentation/4.0/example/ + version: "4.0" diff --git a/source/presentation/4.0/example/uc06_canvas_in_scene.json b/source/presentation/4.0/example/uc06_canvas_in_scene.json index 8f83ab5e8..a72177d3f 100644 --- a/source/presentation/4.0/example/uc06_canvas_in_scene.json +++ b/source/presentation/4.0/example/uc06_canvas_in_scene.json @@ -54,7 +54,10 @@ "width": 800, "height": 800 }, - "target": "https://iiif.io/api/presentation/4.0/example/uc06/canvas/chessboard" + "target": { + "id": "https://iiif.io/api/presentation/4.0/example/uc06/canvas/chessboard", + "type": "Canvas" + } } ] } diff --git a/source/presentation/4.0/example/uc07_duration_composite.json b/source/presentation/4.0/example/uc07_duration_composite.json index 2e44a2554..81dd2294b 100644 --- a/source/presentation/4.0/example/uc07_duration_composite.json +++ b/source/presentation/4.0/example/uc07_duration_composite.json @@ -10,7 +10,7 @@ "label": { "en": [ "Side A: 99 Luftballons - 10min duration" ] }, "width": 100, "height": 100, - "duration": 36000, + "duration": 600, "items": [ { "id": "https://iiif.io/api/presentation/4.0/example/uc07_audio/canvas/1/page/1",