Skip to content

Commit 7579a8f

Browse files
committed
Adding AnnotationCollection Ref
1 parent 1074c29 commit 7579a8f

1 file changed

Lines changed: 36 additions & 7 deletions

File tree

schema/iiif_3_0.json

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
}
455455
}
456456
},
457-
"required": ["id", "type", "label", "items"]
457+
"required": ["id", "type", "label"]
458458
}
459459
]
460460
},
@@ -532,7 +532,7 @@
532532
}
533533
}
534534
},
535-
"required": ["id", "type", "label", "items"]
535+
"required": ["id", "type", "label"]
536536
}
537537
]
538538
},
@@ -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" },
@@ -884,17 +905,20 @@
884905
"partOf": {
885906
"type": "array",
886907
"items": {
887-
"$ref": "#/classes/annotationCollection"
908+
"oneOf": [
909+
{ "$ref": "#/classes/annotationCollection" },
910+
{ "$ref": "#/classes/annotationCollectionRef" }
911+
]
888912
}
889913
},
890914
"next": { "$ref": "#/classes/annotationPageRef" },
891915
"prev": { "$ref": "#/classes/annotationPageRef" },
892916
"first": { "$ref": "#/classes/annotationPageRef" },
893917
"last": { "$ref": "#/classes/annotationPageRef" }
894918
},
895-
"required": ["id", "type", "items"],
919+
"required": ["id","type","items"],
896920
"additionalProperties": false
897-
}
921+
}
898922
]
899923
},
900924
"annotation": {
@@ -981,7 +1005,7 @@
9811005
{
9821006
"$ref": "#/classes/specificResource"
9831007
}
984-
]
1008+
]
9851009
},
9861010
"specificResource": {
9871011
"type": "object",
@@ -1100,7 +1124,12 @@
11001124
"default": "Range"
11011125
},
11021126
"rendering": { "$ref": "#/types/external" },
1103-
"supplementary": { "$ref": "#/classes/annotationCollection" },
1127+
"supplementary": {
1128+
"oneOf": [
1129+
{ "$ref": "#/classes/annotationCollection" },
1130+
{ "$ref": "#/classes/annotationCollectionRef" }
1131+
]
1132+
},
11041133
"service": { "$ref": "#/classes/service" },
11051134
"placeholderCanvas": { "$ref": "#/classes/placeholderCanvas" },
11061135
"accompanyingCanvas": { "$ref": "#/classes/accompanyingCanvas" },

0 commit comments

Comments
 (0)