-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitemselector.schema.json
76 lines (76 loc) · 2.32 KB
/
itemselector.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/common/descriptors/itemselector",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Item Selector",
"meta:extensible": false,
"meta:abstract": false,
"type": "object",
"description":
"Describes how to select or match to a specific item from an array of values described by an XDM schema. Matching may be done based on array index, @id, @type, or schema URI.",
"definitions": {
"selector": {
"oneOf": [
{
"properties": {
"xdm:index": {
"title": "Index",
"type": "integer",
"description":
"When present, indicates the item at this array index should be selected.",
"minimum": 0
}
},
"required": ["xdm:index"]
},
{
"properties": {
"xdm:id": {
"title": "ID",
"type": "string",
"format": "uri",
"description":
"When present, indicates the item with this @id value should be selected."
}
},
"required": ["xdm:id"]
},
{
"properties": {
"xdm:type": {
"title": "Type",
"type": "string",
"format": "uri",
"description":
"When present, indicates the item with this @type value should be selected."
}
},
"required": ["xdm:type"]
},
{
"properties": {
"xdm:schema": {
"title": "Schema",
"type": "string",
"format": "uri",
"description":
"When present, indicates the item which conforms to this schema URI should be selected."
}
},
"required": ["xdm:schema"]
}
]
}
},
"allOf": [
{
"$ref": "#/definitions/selector"
}
],
"meta:status": "experimental"
}