Skip to content

Commit

Permalink
Merge 34cf83c into 90197c8
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomarchioro committed Oct 22, 2021
2 parents 90197c8 + 34cf83c commit 8e0480b
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion schema/iiif_3_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
"type": {
"type": "string",
"pattern": "^Collection",
"default":"Collection",
"title": "Are you validating a collection?",
"description":"If you are validating a manifest, you may get this error if there are errors in the manifest. The validator first validates it as a manifest and if that fails it will try and validate it using the other types."
},
Expand All @@ -381,7 +382,7 @@
"type": "array",
"items": {
"oneOf": [
{ "$ref": "#/classes/manifest" },
{ "$ref": "#/classes/refmanifest" },
{ "$ref": "#/classes/collection" }
]
}
Expand Down Expand Up @@ -472,6 +473,45 @@
}
]
},
"refmanifest": {
"allOf": [
{ "$ref": "#/types/class" },
{
"type": "object",
"additionalProperties": true,
"properties": {
"@context": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"format": "uri",
"pattern": "^http.*$",
"description":"refmanifest is used for referencing manifests inside collections."
}
},
{
"type": "string",
"const": "http://iiif.io/api/presentation/3/context.json"
}
]
},
"id": { "$ref": "#/types/id" },
"label": {"$ref": "#/types/lngString" },
"type": {
"type": "string",
"pattern": "^Manifest"
},
"thumbnail": {
"type": "array",
"items": { "$ref": "#/classes/resource" }
}
},
"required": ["id", "type", "label"]
}
]
},
"canvas": {
"allOf": [
{ "$ref": "#/types/class" },
Expand Down

0 comments on commit 8e0480b

Please sign in to comment.