Skip to content

Commit 67d1ad9

Browse files
shawninderrobertknight
authored andcommitted
Update annotation-create.yaml
Mark `target` as an array in the annotation-create schema
1 parent b1a732a commit 67d1ad9

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

docs/_extra/api-reference/schemas/annotation-create.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,22 @@ Annotation:
6262
permissions:
6363
type: object
6464
target:
65-
type: object
66-
properties:
67-
selector:
68-
type: array
69-
description: An array of selectors that refine this annotation's target
70-
items:
71-
type: object
72-
description: >
73-
A selector for refining the annotation target. See
74-
[the Web Annotation Data Model W3C Recommendation](https://www.w3.org/TR/annotation-model/#selectors)
75-
for details about different selector types and properties.
76-
properties:
77-
"type":
78-
type: string
65+
type: array
66+
items:
67+
type: object
68+
properties:
69+
selector:
70+
type: array
71+
description: An array of selectors that refine this annotation's target
72+
items:
73+
type: object
74+
description: >
75+
A selector for refining the annotation target. See
76+
[the Web Annotation Data Model W3C Recommendation](https://www.w3.org/TR/annotation-model/#selectors)
77+
for details about different selector types and properties.
78+
properties:
79+
"type":
80+
type: string
7981
references:
8082
type: array
8183
description: Annotation IDs for any annotations this annotation references (e.g. is a reply to)

0 commit comments

Comments
 (0)