Skip to content

Commit e38c1e6

Browse files
authored
Merge pull request #157 from IIIF/iiif-prezi-issue-122
Requiring items
2 parents 930a25c + 7579a8f commit e38c1e6

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

schema/iiif_3_0.json

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,27 @@
618618
}
619619
]
620620
},
621+
"annotationCollectionRef": {
622+
"oneOf": [
623+
{
624+
"type": "string"
625+
},
626+
{
627+
"allOf": [
628+
{ "$ref": "#/types/reference" },
629+
{
630+
"type": "object",
631+
"properties": {
632+
"type": {
633+
"type": "string",
634+
"pattern": "^AnnotationCollection$"
635+
}
636+
}
637+
}
638+
]
639+
}
640+
]
641+
},
621642
"canvas": {
622643
"allOf": [
623644
{ "$ref": "#/types/class" },
@@ -833,7 +854,8 @@
833854
"$ref": "#/classes/annotation"
834855
}
835856
}
836-
}
857+
},
858+
"required": ["items"]
837859
}
838860
]
839861
},
@@ -883,7 +905,10 @@
883905
"partOf": {
884906
"type": "array",
885907
"items": {
886-
"$ref": "#/classes/annotationCollection"
908+
"oneOf": [
909+
{ "$ref": "#/classes/annotationCollection" },
910+
{ "$ref": "#/classes/annotationCollectionRef" }
911+
]
887912
}
888913
},
889914
"next": { "$ref": "#/classes/annotationPageRef" },
@@ -980,7 +1005,7 @@
9801005
{
9811006
"$ref": "#/classes/specificResource"
9821007
}
983-
]
1008+
]
9841009
},
9851010
"specificResource": {
9861011
"type": "object",
@@ -1099,7 +1124,12 @@
10991124
"default": "Range"
11001125
},
11011126
"rendering": { "$ref": "#/types/external" },
1102-
"supplementary": { "$ref": "#/classes/annotationCollection" },
1127+
"supplementary": {
1128+
"oneOf": [
1129+
{ "$ref": "#/classes/annotationCollection" },
1130+
{ "$ref": "#/classes/annotationCollectionRef" }
1131+
]
1132+
},
11031133
"service": { "$ref": "#/classes/service" },
11041134
"placeholderCanvas": { "$ref": "#/classes/placeholderCanvas" },
11051135
"accompanyingCanvas": { "$ref": "#/classes/accompanyingCanvas" },

0 commit comments

Comments
 (0)