-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlmacTask.json
More file actions
120 lines (119 loc) · 2.59 KB
/
lmacTask.json
File metadata and controls
120 lines (119 loc) · 2.59 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$schema": "http://www.lavishsoft.com/schema/isboxer2/isboxer2.json",
"$id": "http://www.lavishsoft.com/schema/lmacTask.json",
"description": "An LMAC Task",
"type": "object",
"isboxer2_object":"task",
"definitions": {
"numberOrInteger": {
"type":["integer","number"]
}
},
"properties": {
"library": {
"type": "string",
"title": "Task Library",
"description": "A Task Library containing the Task specified by taskName. When referencing a Task in a Task Library, all values other than library and taskName are ignored.",
"isboxer2_identifier":"taskLibrary"
},
"taskName": {
"type": "string",
"title": "Task Name",
"description": "A Task within the Task Library specified by library. When referencing a Task in a Task Library, all values other than library and taskName are ignored.",
"isboxer2_identifier":"taskLibraryTask"
},
"type": {
"type": "string",
"title": "Task Type",
"description": "A Task Type to construct",
"isboxer2_identifier":"taskType"
},
"duration": {
"allOf": [
{
"$ref": "#/definitions/numberOrInteger"
}
],
"title": "Duration",
"description": "An integer specifying a number of milliseconds, or a floating point number specifying a number of seconds (e.g. 1.0)",
"examples": [
0.5,
500
]
},
"instant": {
"type": "boolean",
"title": "Instant",
"description": "When enabled, specifies that the Task must complete instantly, ignoring any specified duration."
}
},
"allOf": [
{
"if": {
"required": [
"type"
]
},
"then": {
"not": {
"required": [
"library",
"taskName"
]
}
}
},
{
"if": {
"anyOf": [
{
"required": [
"library"
]
},
{
"required": [
"taskName"
]
}
]
},
"then": {
"not": {
"required": [
"type"
]
},
"required":["library","taskName"]
}
},
{
"if": {
"required": [
"duration"
]
},
"then": {
"not": {
"required": [
"instant"
]
}
}
},
{
"if": {
"required": [
"instant"
]
},
"then": {
"not": {
"required": [
"duration"
]
}
}
}
]
}