Skip to content

Commit b602feb

Browse files
authored
Merge pull request #176 from IIIF/allow_strings_anno_page
Allowing strings for AnnotationPage references
2 parents 2081430 + e78b750 commit b602feb

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

schema/iiif_3_0.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -598,18 +598,25 @@
598598
]
599599
},
600600
"annotationPageRef": {
601-
"allOf": [
602-
{ "$ref": "#/types/reference" },
601+
"oneOf": [
603602
{
604-
"type": "object",
605-
"properties": {
606-
"type": {
607-
"type": "string",
608-
"pattern": "^AnnotationPage$"
603+
"type": "string"
604+
},
605+
{
606+
"allOf": [
607+
{ "$ref": "#/types/reference" },
608+
{
609+
"type": "object",
610+
"properties": {
611+
"type": {
612+
"type": "string",
613+
"pattern": "^AnnotationPage$"
614+
}
615+
}
609616
}
610-
}
617+
]
611618
}
612-
]
619+
]
613620
},
614621
"canvas": {
615622
"allOf": [
@@ -812,6 +819,10 @@
812819
"first": { "$ref": "#/classes/annotationPageRef" },
813820
"last": { "$ref": "#/classes/annotationPageRef" },
814821
"service": { "$ref": "#/classes/service" },
822+
"total": {
823+
"type": "integer",
824+
"exclusiveMinimum": 0
825+
},
815826
"thumbnail": {
816827
"type": "array",
817828
"items": { "$ref": "#/classes/resource" }
@@ -876,6 +887,7 @@
876887
}
877888
},
878889
"next": { "$ref": "#/classes/annotationPageRef" },
890+
"prev": { "$ref": "#/classes/annotationPageRef" },
879891
"first": { "$ref": "#/classes/annotationPageRef" },
880892
"last": { "$ref": "#/classes/annotationPageRef" }
881893
},
@@ -1151,6 +1163,7 @@
11511163
"oneOf": [
11521164
{ "$ref": "#/classes/manifest" },
11531165
{ "$ref": "#/classes/collection" },
1166+
{ "$ref": "#/classes/annotationCollection" },
11541167
{ "$ref": "#/classes/annotationPage" }
11551168
]
11561169
}

0 commit comments

Comments
 (0)