Skip to content

Commit b17a552

Browse files
authored
Merge pull request #208 from IIIF/glenrobson-patch-1
Ensuring collection has type
2 parents 17f04fa + 455c3c3 commit b17a552

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

schema/iiif_3_0.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,8 @@
688688
"properties": {
689689
"type": {
690690
"type": "string",
691-
"pattern": "^Collection$"
691+
"pattern": "^Collection$",
692+
"default": "Collection"
692693
},
693694
"label": {"$ref": "#/types/lngString" }
694695
},
@@ -704,7 +705,8 @@
704705
"properties": {
705706
"type": {
706707
"type": "string",
707-
"pattern": "^Range$"
708+
"pattern": "^Range$",
709+
"default": "Range"
708710
}
709711
}
710712
}
@@ -718,7 +720,8 @@
718720
"properties": {
719721
"type": {
720722
"type": "string",
721-
"pattern": "^Canvas$"
723+
"pattern": "^Canvas$",
724+
"default": "Canvas"
722725
},
723726
"partOf": {
724727
"$ref": "#/classes/partOf"
@@ -742,7 +745,8 @@
742745
"properties": {
743746
"type": {
744747
"type": "string",
745-
"pattern": "^AnnotationPage$"
748+
"pattern": "^AnnotationPage$",
749+
"default": "AnnotationPage"
746750
}
747751
}
748752
}

0 commit comments

Comments
 (0)