-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtd-op-for-property.json
64 lines (64 loc) · 2.11 KB
/
td-op-for-property.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
{
"title": "td-op-for-property",
"description": "When a forms term member is present in a Property instance, the value(s) of op in the forms MUST be one of readproperty, writeproperty or observeproperty. ",
"$schema": "http://json-schema.org/draft-07/schema#",
"is-complex": true,
"type": "object",
"properties": {
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/property_element"
}
}
},
"additionalProperties": true,
"definitions": {
"property_element": {
"type": "object",
"properties": {
"forms": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/form_element_property"
}
}
},
"required": ["forms"],
"additionalProperties": true
},
"form_element_property": {
"if": {
"type": "object",
"properties": {
"href": {
"$ref": "#/definitions/url"
},
"op": {
"oneOf": [
{
"type": "string",
"enum": ["readproperty", "writeproperty", "observeproperty", "unobserveproperty"]
},
{
"type": "array",
"items": {
"type": "string",
"enum": ["readproperty", "writeproperty", "observeproperty", "unobserveproperty"]
}
}
]
}
},
"required": ["href", "op"]
},
"then": {
"const": "td-op-for-property=pass"
}
},
"url": {
"type": "string"
}
}
}