Skip to content

Commit 930a25c

Browse files
authored
Merge pull request #181 from IIIF/issue_179
Make selector on SpecificResource optional.
2 parents 1aaaaee + c9ded31 commit 930a25c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

fixtures/3/anno_source.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"format": "text/plain"
7979
},
8080
"target": {
81+
"type":"SpecificResource",
8182
"source": "https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-xray/full/max/0/default.jpg#xywh=810,900,260,370",
8283
"scope": "https://preview.iiif.io/cookbook/0326-annotating-image-layer/recipe/0326-annotating-image-layer/canvas/p1"
8384
}
@@ -95,4 +96,4 @@
9596
]
9697
}
9798
]
98-
}
99+
}

schema/iiif_3_0.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -979,15 +979,6 @@
979979
},
980980
{
981981
"$ref": "#/classes/specificResource"
982-
},
983-
{
984-
"title": "Annotation target can also contain just scope and source",
985-
"type": "object",
986-
"properties": {
987-
"source": { "$ref": "#/types/id" },
988-
"scope": { "$ref": "#/types/id" }
989-
},
990-
"required": ["source", "scope"]
991982
}
992983
]
993984
},
@@ -1008,6 +999,7 @@
1008999
{ "$ref": "#/types/class" }
10091000
]
10101001
},
1002+
"scope": { "$ref": "#/types/id"},
10111003
"selector": {
10121004
"oneOf": [
10131005
{ "$ref": "#/classes/selector" },
@@ -1020,7 +1012,7 @@
10201012
]
10211013
}
10221014
},
1023-
"required": ["source", "selector"]
1015+
"required": ["source"]
10241016
},
10251017
"selector": {
10261018
"oneOf": [

0 commit comments

Comments
 (0)