Skip to content

Commit 777e6a2

Browse files
authored
Update iiif_3_0.json
Simplifying choice
1 parent 32852e8 commit 777e6a2

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

schema/iiif_3_0.json

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,14 @@
156156
"properties":{
157157
"type": {
158158
"type": "string",
159-
"const": "Choice"
159+
"const": "Choice",
160+
"default": "Choice"
160161
},
161162
"items":{
162-
"type": "array"
163+
"type": "array",
164+
"items": {
165+
"$ref": "#/classes/resource"
166+
}
163167
}
164168
},
165169
"required": ["type", "items"]
@@ -987,23 +991,12 @@
987991
},
988992
{
989993
"type": "object",
990-
"allOf":[
991-
{ "$ref": "#/classes/choice" },
992-
{
993-
"properties": {
994-
"items": {
995-
"type": "array",
996-
"items": {"$ref": "#/classes/resource"}
997-
}
998-
},
999-
"required": ["items"]
1000-
}
1001-
]
994+
"$ref": "#/classes/choice"
1002995
},
1003996
{
1004997
"type": "array",
1005998
"items": {
1006-
"type": "object"
999+
"$ref": "#/classes/resource"
10071000
}
10081001
}
10091002

0 commit comments

Comments
 (0)