Skip to content

Commit

Permalink
Added Selector types
Browse files Browse the repository at this point in the history
Fragment, CSS, XPath, Data Position, SVG
  • Loading branch information
shawninder authored and seanh committed May 10, 2023
1 parent ac07a0b commit af7d903
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/_extra/api-reference/schemas/annotation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,35 @@ Annotation:
description: An array of selectors that refine this annotation's target. See [the Web Annotation Data Model W3C Recommendation](https://www.w3.org/TR/annotation-model/#selectors) for details about different selector types and properties.
items:
oneOf:
- type: object
description: Fragment Selector
required:
- type
- value
- conformsTo
properties:
"type":
type: string
value: string
conformsTo: string
- type: object
description: CSS Selector
required:
- type
- value
properties:
"type":
type: string
value: string
- type: object
description: XPath Selector
required:
- type
- value
properties:
"type":
type: string
value: string
- type: object
description: Text Quote Selector
required:
Expand All @@ -80,6 +109,26 @@ Annotation:
type: string
start: number
end: number
- type: object
description: Data Position Selector
required:
- type
- start
- end
properties:
"type":
type: string
start: number
end: number
- type: object
description: SVG Selector
required:
- type
- value
properties:
"type":
type: string
value: string
- type: object
description: Range Selector
required:
Expand Down

0 comments on commit af7d903

Please sign in to comment.