You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-7Lines changed: 40 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,52 @@ error | The text of the breaking error | sc:Manifest['thumbnail'] has brok
27
27
okay | Did the manifest parse properly? | 1 *or* 0
28
28
warnings | An array of warning messages | "WARNING: Resource type 'sc:Manifest' should have 'description' set\n"
29
29
30
-
## Local Installation
30
+
## Installing localy
31
31
32
+
### Option 1: Using uv (recommended)
32
33
33
-
**Step one: Install dependencies**
34
+
```
35
+
uv sync
36
+
```
37
+
38
+
### Option 2: Using pip
34
39
35
-
```bash
36
-
python setup.py install
37
40
```
41
+
pip install .
42
+
```
43
+
44
+
Either option will install the `iiif-validator` command. This command allows you to run the validator server or validate local or remote files from the command line.
38
45
39
-
**Step two: Run the application**
46
+
## Command line validation
47
+
48
+
To validate a manifest from the command line:
49
+
```
50
+
# Using uv
51
+
uv run iiif-validator validate --version <version> <url-or-file>
This should start up a local server, running at <localhost:8080>. To test it, try [this url](http://localhost:8080/validate?url=http://iiif.io/api/presentation/2.1/example/fixtures/1/manifest.json) and see if you get a JSON response that looks like this:
description: "Validate IIIF JSON files in a directory using iiif-validator validate-dir"
3
+
4
+
inputs:
5
+
directory:
6
+
description: "Directory to search recursively for files"
7
+
required: true
8
+
version:
9
+
description: "IIIF Presentation version to validate against, e.g. 2.1 or 3.0. If this isn't supplied then the version will be determined by the @context in the manifest"
10
+
required: false
11
+
default: ""
12
+
13
+
extension:
14
+
description: "File extension or glob pattern to match (e.g. .json, .jsonld)"
0 commit comments