@grexx/grexxlinter 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/cli.js +14973 -0
  2. package/lsp.js +23977 -0
  3. package/package.json +19 -0
  4. package/schemas/.coverage.json +10987 -0
  5. package/schemas/abstract.schema.json +842 -0
  6. package/schemas/abstractAttribute.schema.json +38 -0
  7. package/schemas/abstractAttributeFormField.schema.json +50 -0
  8. package/schemas/abstractCondition.schema.json +74 -0
  9. package/schemas/abstractRight.schema.json +74 -0
  10. package/schemas/abstractRole.schema.json +50 -0
  11. package/schemas/abstractRule.schema.json +182 -0
  12. package/schemas/activity.schema.json +1328 -0
  13. package/schemas/activityAttribute.schema.json +73 -0
  14. package/schemas/activityRight.schema.json +64 -0
  15. package/schemas/agent.schema.json +179 -0
  16. package/schemas/agentTool.schema.json +118 -0
  17. package/schemas/attribute.schema.json +286 -0
  18. package/schemas/casetype.schema.json +256 -0
  19. package/schemas/catchBlock.schema.json +76 -0
  20. package/schemas/common.schema.json +63 -0
  21. package/schemas/conditionList.schema.json +67 -0
  22. package/schemas/container.schema.json +88 -0
  23. package/schemas/cssVariables.schema.json +90 -0
  24. package/schemas/customThrow.schema.json +73 -0
  25. package/schemas/dataRetentionProfile.schema.json +90 -0
  26. package/schemas/dataset.schema.json +579 -0
  27. package/schemas/datasetColumn.schema.json +423 -0
  28. package/schemas/datasetCondition.schema.json +409 -0
  29. package/schemas/datasetRight.schema.json +86 -0
  30. package/schemas/datasource.schema.json +73 -0
  31. package/schemas/dateProfile.schema.json +87 -0
  32. package/schemas/directRole.schema.json +71 -0
  33. package/schemas/fileUploadProfile.schema.json +75 -0
  34. package/schemas/forEach.schema.json +144 -0
  35. package/schemas/form.schema.json +119 -0
  36. package/schemas/formAction.schema.json +149 -0
  37. package/schemas/formActionAi.schema.json +81 -0
  38. package/schemas/formActionInlineJavascript.schema.json +66 -0
  39. package/schemas/formButton.schema.json +84 -0
  40. package/schemas/formGroup.schema.json +99 -0
  41. package/schemas/formRight.schema.json +86 -0
  42. package/schemas/formfield.schema.json +339 -0
  43. package/schemas/gridActivity.schema.json +80 -0
  44. package/schemas/gridColumn.schema.json +111 -0
  45. package/schemas/hasRoleCondition.schema.json +63 -0
  46. package/schemas/ifthenelse.schema.json +78 -0
  47. package/schemas/indirectRole.schema.json +74 -0
  48. package/schemas/job.schema.json +63 -0
  49. package/schemas/jobStep.schema.json +68 -0
  50. package/schemas/llmModel.schema.json +79 -0
  51. package/schemas/mapping.schema.json +690 -0
  52. package/schemas/menuItem.schema.json +519 -0
  53. package/schemas/menuItemRight.schema.json +64 -0
  54. package/schemas/metadata.schema.json +96 -0
  55. package/schemas/navigation.schema.json +86 -0
  56. package/schemas/notCondition.schema.json +60 -0
  57. package/schemas/parallelBlock.schema.json +75 -0
  58. package/schemas/picklist.schema.json +113 -0
  59. package/schemas/picklistItem.schema.json +71 -0
  60. package/schemas/platformAttribute.schema.json +300 -0
  61. package/schemas/platformRole.schema.json +191 -0
  62. package/schemas/platformconstants.schema.json +94 -0
  63. package/schemas/plugin.schema.json +99 -0
  64. package/schemas/pluginLibrary.schema.json +78 -0
  65. package/schemas/requestContext.schema.json +183 -0
  66. package/schemas/roleName.schema.json +115 -0
  67. package/schemas/ruleList.schema.json +72 -0
  68. package/schemas/securityProfile.schema.json +63 -0
  69. package/schemas/securityRequirement.schema.json +63 -0
  70. package/schemas/simpleCondition.schema.json +466 -0
  71. package/schemas/staticFile.schema.json +63 -0
  72. package/schemas/tag.schema.json +62 -0
  73. package/schemas/taskQueue.schema.json +69 -0
  74. package/schemas/template/activitymeta.schema.json +36 -0
  75. package/schemas/template/attribute.schema.json +31 -0
  76. package/schemas/template/calculate-dataset.schema.json +31 -0
  77. package/schemas/template/casemeta.schema.json +18 -0
  78. package/schemas/template/casetypemeta.schema.json +19 -0
  79. package/schemas/template/comment.schema.json +36 -0
  80. package/schemas/template/datasetColumn.schema.json +31 -0
  81. package/schemas/template/date-function.schema.json +232 -0
  82. package/schemas/template/definitionmeta.schema.json +73 -0
  83. package/schemas/template/file.schema.json +39 -0
  84. package/schemas/template/foreach.schema.json +67 -0
  85. package/schemas/template/formfield.schema.json +21 -0
  86. package/schemas/template/formula.schema.json +18 -0
  87. package/schemas/template/hasRole.schema.json +18 -0
  88. package/schemas/template/historic.schema.json +21 -0
  89. package/schemas/template/html.schema.json +165 -0
  90. package/schemas/template/icon.schema.json +18 -0
  91. package/schemas/template/if.schema.json +30 -0
  92. package/schemas/template/inlineTemplate.schema.json +26 -0
  93. package/schemas/template/isnull.schema.json +21 -0
  94. package/schemas/template/isofcasetype.schema.json +24 -0
  95. package/schemas/template/iterator.schema.json +61 -0
  96. package/schemas/template/json.schema.json +55 -0
  97. package/schemas/template/math.schema.json +210 -0
  98. package/schemas/template/meta.schema.json +164 -0
  99. package/schemas/template/metadefinitionmeta.schema.json +36 -0
  100. package/schemas/template/multivalue.schema.json +210 -0
  101. package/schemas/template/page.schema.json +21 -0
  102. package/schemas/template/parameter.schema.json +24 -0
  103. package/schemas/template/parameterDefinition.schema.json +27 -0
  104. package/schemas/template/parameterIdDefinition.schema.json +28 -0
  105. package/schemas/template/parseError.schema.json +48 -0
  106. package/schemas/template/picklist.schema.json +27 -0
  107. package/schemas/template/pseudoTemplate.schema.json +27 -0
  108. package/schemas/template/requestcontext.schema.json +52 -0
  109. package/schemas/template/returnType.schema.json +26 -0
  110. package/schemas/template/spacialMath.schema.json +77 -0
  111. package/schemas/template/special.schema.json +19 -0
  112. package/schemas/template/staticFile.schema.json +39 -0
  113. package/schemas/template/system.schema.json +22 -0
  114. package/schemas/template/systemconfig.schema.json +21 -0
  115. package/schemas/template/taskattribute.schema.json +21 -0
  116. package/schemas/template/taskdata.schema.json +24 -0
  117. package/schemas/template/taskmeta.schema.json +180 -0
  118. package/schemas/template/taskqueuemeta.schema.json +36 -0
  119. package/schemas/template/template.schema.json +27 -0
  120. package/schemas/template/templatePart.schema.json +638 -0
  121. package/schemas/template/text.schema.json +18 -0
  122. package/schemas/template/url.schema.json +77 -0
  123. package/schemas/template/urlParameter.schema.json +21 -0
  124. package/schemas/template/user.schema.json +36 -0
  125. package/schemas/template/userProperty.schema.json +22 -0
  126. package/schemas/template/usersession.schema.json +18 -0
  127. package/schemas/template/util.schema.json +434 -0
  128. package/schemas/template/xml.schema.json +55 -0
  129. package/schemas/template.schema.json +74 -0
  130. package/schemas/theme.schema.json +63 -0
  131. package/schemas/trigger.schema.json +413 -0
  132. package/schemas/tryBlock.schema.json +99 -0
  133. package/schemas/view.schema.json +159 -0
  134. package/schemas/webhook.schema.json +77 -0
  135. package/schemas/while.schema.json +130 -0
  136. package/schemas/widget.schema.json +1416 -0
  137. package/schemas/widgetRight.schema.json +85 -0
@@ -0,0 +1,286 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/attribute.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
+ },
19
+ "type": "array"
20
+ },
21
+ "_origin": {
22
+ "type": "string"
23
+ },
24
+ "_src": {
25
+ "type": "string"
26
+ },
27
+ "_type": {
28
+ "const": "attribute"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "addActivity": {
36
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
37
+ },
38
+ "addActivityBase": {
39
+ "type": "string"
40
+ },
41
+ "allowHTML": {
42
+ "type": "boolean"
43
+ },
44
+ "anonymizeAttribute": {
45
+ "type": "boolean"
46
+ },
47
+ "attributeDataretentionProfiles": {
48
+ "items": {
49
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
50
+ },
51
+ "type": "array"
52
+ },
53
+ "attributeDefaultValue": {
54
+ "type": "string"
55
+ },
56
+ "calcTemplate": {
57
+ "$ref": "template/inlineTemplate.schema.json"
58
+ },
59
+ "calculatedCached": {
60
+ "type": "boolean"
61
+ },
62
+ "calculatedTemplate": {
63
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
64
+ },
65
+ "calculationOrder": {
66
+ "type": "integer"
67
+ },
68
+ "currency": {
69
+ "type": "string"
70
+ },
71
+ "currentCasetypes": {
72
+ "$ref": "template/inlineTemplate.schema.json"
73
+ },
74
+ "dateProfile": {
75
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
76
+ },
77
+ "description": {
78
+ "$ref": "template/inlineTemplate.schema.json"
79
+ },
80
+ "devref": {
81
+ "type": "string"
82
+ },
83
+ "doNotUpdateLastModified": {
84
+ "type": "boolean"
85
+ },
86
+ "excludeFromRelatedCases": {
87
+ "type": "boolean"
88
+ },
89
+ "externalReference": {
90
+ "type": "string"
91
+ },
92
+ "externalSourceColumnName": {
93
+ "type": "string"
94
+ },
95
+ "fileProfile": {
96
+ "items": {
97
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
98
+ },
99
+ "type": "array"
100
+ },
101
+ "filesizeMax": {
102
+ "type": "integer"
103
+ },
104
+ "filesizeMin": {
105
+ "type": "integer"
106
+ },
107
+ "fileuploadInstruction": {
108
+ "$ref": "template/inlineTemplate.schema.json"
109
+ },
110
+ "inactive": {
111
+ "type": "boolean"
112
+ },
113
+ "instruction": {
114
+ "$ref": "template/inlineTemplate.schema.json"
115
+ },
116
+ "interfaceStudioProduct": {
117
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
118
+ },
119
+ "isBigDatatype": {
120
+ "type": "boolean"
121
+ },
122
+ "isCalculated": {
123
+ "type": "boolean"
124
+ },
125
+ "metaCaseToOtap": {
126
+ "type": "boolean"
127
+ },
128
+ "multiLanguage": {
129
+ "type": "boolean"
130
+ },
131
+ "multivalue": {
132
+ "type": "boolean"
133
+ },
134
+ "multivalueMax": {
135
+ "type": "integer"
136
+ },
137
+ "multivalueMin": {
138
+ "type": "integer"
139
+ },
140
+ "multivalueType": {
141
+ "enum": [
142
+ "set",
143
+ "list"
144
+ ],
145
+ "type": "string"
146
+ },
147
+ "name": {
148
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
149
+ },
150
+ "ourProductId": {
151
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
152
+ },
153
+ "picklist": {
154
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
155
+ },
156
+ "picklistBase": {
157
+ "type": "string"
158
+ },
159
+ "picklistShowLinkToCase": {
160
+ "type": "boolean"
161
+ },
162
+ "placeholder": {
163
+ "$ref": "template/inlineTemplate.schema.json"
164
+ },
165
+ "platformAttribute": {
166
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
167
+ },
168
+ "subtype": {
169
+ "items": {
170
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
171
+ },
172
+ "type": "array"
173
+ },
174
+ "tooltip": {
175
+ "$ref": "template/inlineTemplate.schema.json"
176
+ },
177
+ "type": {
178
+ "enum": [
179
+ "boolean",
180
+ "date",
181
+ "datetime",
182
+ "integer",
183
+ "long",
184
+ "double",
185
+ "string",
186
+ "string",
187
+ "text",
188
+ "mediumstring",
189
+ "smallstring",
190
+ "tinystring",
191
+ "caseid",
192
+ "case",
193
+ "internalexternalcaseid",
194
+ "internalexternalcaseid",
195
+ "taskid",
196
+ "task",
197
+ "jsonobject",
198
+ "json",
199
+ "file",
200
+ "inlinetemplate",
201
+ "money",
202
+ "uuid",
203
+ "datasetrow",
204
+ "versionedid",
205
+ "point2d",
206
+ "polygon2d",
207
+ "grexxblob",
208
+ "singlecurrencymoney"
209
+ ],
210
+ "type": "string"
211
+ },
212
+ "uniqueColumn": {
213
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
214
+ },
215
+ "uniqueDataset": {
216
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
217
+ },
218
+ "validation": {
219
+ "type": "string"
220
+ }
221
+ },
222
+ "required": [
223
+ "_type",
224
+ "_uid"
225
+ ],
226
+ "title": "attribute",
227
+ "type": "object",
228
+ "allOf": [
229
+ {
230
+ "properties": {
231
+ "addActivity": false
232
+ }
233
+ },
234
+ {
235
+ "properties": {
236
+ "attributeDefaultValue": false
237
+ }
238
+ },
239
+ {
240
+ "properties": {
241
+ "addActivityBase": false
242
+ }
243
+ },
244
+ {
245
+ "properties": {
246
+ "picklistBase": false
247
+ }
248
+ },
249
+ {
250
+ "if": {
251
+ "properties": {
252
+ "isCalculated": {
253
+ "const": "true"
254
+ }
255
+ },
256
+ "required": [
257
+ "isCalculated"
258
+ ]
259
+ },
260
+ "then": {
261
+ "required": [
262
+ "calcTemplate"
263
+ ]
264
+ }
265
+ },
266
+ {
267
+ "if": {
268
+ "properties": {
269
+ "isUnique": {
270
+ "const": "true"
271
+ }
272
+ },
273
+ "required": [
274
+ "isUnique"
275
+ ]
276
+ },
277
+ "then": {
278
+ "required": [
279
+ "uniqueColumn",
280
+ "uniqueDataset"
281
+ ]
282
+ }
283
+ }
284
+ ],
285
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/attribute.json."
286
+ }
@@ -0,0 +1,256 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/casetype.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
+ },
19
+ "type": "array"
20
+ },
21
+ "_origin": {
22
+ "type": "string"
23
+ },
24
+ "_src": {
25
+ "type": "string"
26
+ },
27
+ "_type": {
28
+ "const": "casetype"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "alias": {
36
+ "type": "string"
37
+ },
38
+ "caseRedirect": {
39
+ "$ref": "template/inlineTemplate.schema.json"
40
+ },
41
+ "casetypeDoNotUseFlattenedTable": {
42
+ "type": "boolean"
43
+ },
44
+ "casetypeRules": {
45
+ "items": {
46
+ "$ref": "abstractRule.schema.json"
47
+ },
48
+ "type": "array"
49
+ },
50
+ "closedPath": {
51
+ "$ref": "template/inlineTemplate.schema.json"
52
+ },
53
+ "css": {
54
+ "items": {
55
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
56
+ },
57
+ "type": "array"
58
+ },
59
+ "dataRetentionDeleteDaysAfterCompletion": {
60
+ "type": "integer"
61
+ },
62
+ "dataretentionProfiles": {
63
+ "items": {
64
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
65
+ },
66
+ "type": "array"
67
+ },
68
+ "defaultView": {
69
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
70
+ },
71
+ "description": {
72
+ "$ref": "template/inlineTemplate.schema.json"
73
+ },
74
+ "devref": {
75
+ "type": "string"
76
+ },
77
+ "externalSourceIdentityColumn": {
78
+ "type": "string"
79
+ },
80
+ "externalSourceIdentityColumnIsNumber": {
81
+ "type": "boolean"
82
+ },
83
+ "externalSourceSettings": {
84
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
85
+ },
86
+ "externalSourceTableName": {
87
+ "type": "string"
88
+ },
89
+ "hasSeparatePathForArchive": {
90
+ "type": "boolean"
91
+ },
92
+ "inactive": {
93
+ "type": "boolean"
94
+ },
95
+ "interfaceID": {
96
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
97
+ },
98
+ "interfaceStudioProduct": {
99
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
100
+ },
101
+ "isInterface": {
102
+ "type": "boolean"
103
+ },
104
+ "metaCaseToOtap": {
105
+ "type": "boolean"
106
+ },
107
+ "metadatas": {
108
+ "items": {
109
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
110
+ },
111
+ "type": "array"
112
+ },
113
+ "name": {
114
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
115
+ },
116
+ "ourProductId": {
117
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
118
+ },
119
+ "path": {
120
+ "$ref": "template/inlineTemplate.schema.json"
121
+ },
122
+ "public": {
123
+ "type": "boolean"
124
+ },
125
+ "referenceInline": {
126
+ "$ref": "template/inlineTemplate.schema.json"
127
+ },
128
+ "resultForm": {
129
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
130
+ },
131
+ "scriptedCode": {
132
+ "type": "string"
133
+ },
134
+ "scriptedDependencies": {
135
+ "additionalProperties": true,
136
+ "type": "object"
137
+ },
138
+ "scriptedImportNames": {
139
+ "additionalProperties": true,
140
+ "type": "object"
141
+ },
142
+ "scriptedRightsActivities": {
143
+ "items": {
144
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
145
+ },
146
+ "type": "array"
147
+ },
148
+ "scriptedRightsDatasets": {
149
+ "items": {
150
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
151
+ },
152
+ "type": "array"
153
+ },
154
+ "scriptedRightsForms": {
155
+ "items": {
156
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
157
+ },
158
+ "type": "array"
159
+ },
160
+ "service": {
161
+ "$ref": "template/inlineTemplate.schema.json"
162
+ },
163
+ "startActivity": {
164
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
165
+ },
166
+ "type": {
167
+ "enum": [
168
+ "casetype",
169
+ "page",
170
+ "systemservice",
171
+ "scripted",
172
+ "agent",
173
+ "unknown"
174
+ ],
175
+ "type": "string"
176
+ }
177
+ },
178
+ "required": [
179
+ "_type",
180
+ "_uid",
181
+ "name",
182
+ "type"
183
+ ],
184
+ "title": "casetype",
185
+ "type": "object",
186
+ "allOf": [
187
+ {
188
+ "if": {
189
+ "properties": {
190
+ "type": {
191
+ "const": "page"
192
+ }
193
+ },
194
+ "required": [
195
+ "type"
196
+ ]
197
+ },
198
+ "then": {
199
+ "required": [
200
+ "alias",
201
+ "defaultView"
202
+ ],
203
+ "properties": {
204
+ "hasSeparatePathForArchive": false,
205
+ "startActivity": false,
206
+ "service": false,
207
+ "closedPath": false
208
+ }
209
+ }
210
+ },
211
+ {
212
+ "if": {
213
+ "properties": {
214
+ "type": {
215
+ "const": "casetype"
216
+ }
217
+ },
218
+ "required": [
219
+ "type"
220
+ ]
221
+ },
222
+ "then": {
223
+ "required": [
224
+ "defaultView",
225
+ "startActivity"
226
+ ],
227
+ "properties": {
228
+ "alias": false,
229
+ "service": false
230
+ }
231
+ }
232
+ },
233
+ {
234
+ "if": {
235
+ "properties": {
236
+ "type": {
237
+ "const": "systemservice"
238
+ }
239
+ },
240
+ "required": [
241
+ "type"
242
+ ]
243
+ },
244
+ "then": {
245
+ "required": [
246
+ "service"
247
+ ],
248
+ "properties": {
249
+ "alias": false,
250
+ "css": false
251
+ }
252
+ }
253
+ }
254
+ ],
255
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/casetype.json."
256
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/catchBlock.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties" : false,
5
+ "properties" : {
6
+ "_id" : {
7
+ "type" : "string"
8
+ },
9
+ "_interfaceID" : {
10
+ "type" : "string"
11
+ },
12
+ "_isInterface" : {
13
+ "type" : "boolean"
14
+ },
15
+ "_knownIDs" : {
16
+ "items" : {
17
+ "type" : "string"
18
+ },
19
+ "type" : "array"
20
+ },
21
+ "_origin" : {
22
+ "type" : "string"
23
+ },
24
+ "_src" : {
25
+ "type" : "string"
26
+ },
27
+ "_type" : {
28
+ "const" : "catchBlock"
29
+ },
30
+ "_uid" : {
31
+ "description" : "Deterministic UUID derived from case-ID.",
32
+ "format" : "uuid",
33
+ "type" : "string"
34
+ },
35
+ "catchRule" : {
36
+ "items" : {
37
+ "$ref" : "abstractRule.schema.json"
38
+ },
39
+ "type" : "array"
40
+ },
41
+ "description" : {
42
+ "$ref" : "template/inlineTemplate.schema.json"
43
+ },
44
+ "inactive" : {
45
+ "type" : "boolean"
46
+ },
47
+ "interfaceStudioProduct" : {
48
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
49
+ },
50
+ "metaCaseToOtap" : {
51
+ "type" : "boolean"
52
+ },
53
+ "ourProductId" : {
54
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
55
+ },
56
+ "pattern" : {
57
+ "items" : {
58
+ "enum" : [ "EMAIL-1001" ],
59
+ "type" : "string"
60
+ },
61
+ "type" : "array"
62
+ },
63
+ "progressTemplate" : {
64
+ "$ref" : "template/inlineTemplate.schema.json"
65
+ },
66
+ "progressTitle" : {
67
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
68
+ },
69
+ "showProgress" : {
70
+ "type" : "boolean"
71
+ }
72
+ },
73
+ "required" : [ "_type", "_uid" ],
74
+ "title" : "catchBlock",
75
+ "type" : "object"
76
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$defs" : {
3
+ "caseIdOrFileReference" : {
4
+ "description" : "A file reference, inline reference (file#uuid), or raw case-ID.",
5
+ "oneOf" : [ {
6
+ "$ref" : "#/$defs/fileReference"
7
+ }, {
8
+ "$ref" : "#/$defs/inlineReference"
9
+ }, {
10
+ "$ref" : "#/$defs/localReference"
11
+ }, {
12
+ "description" : "Raw case-ID (e.g. 1:5085:123 or 1:5085:123:1).",
13
+ "pattern" : "^\\d+:\\d+:\\d+(:\\d+)?$",
14
+ "type" : "string"
15
+ } ]
16
+ },
17
+ "caseIdOrParameter" : {
18
+ "description" : "A case-ID or parameter reference (e.g. {{parameterName}}).",
19
+ "oneOf" : [ {
20
+ "$ref" : "#/$defs/caseIdOrFileReference"
21
+ }, {
22
+ "description" : "UUID of template parameter.",
23
+ "pattern" : "^[0-9a-f-]+$",
24
+ "type" : "string"
25
+ } ]
26
+ },
27
+ "fileDataObject" : {
28
+ "additionalProperties" : true,
29
+ "description" : "Serialized file/binary data attached to a definition.",
30
+ "type" : "object"
31
+ },
32
+ "fileReference" : {
33
+ "description" : "Relative path to another YAML file.",
34
+ "pattern" : ".*\\.yaml$",
35
+ "type" : "string"
36
+ },
37
+ "inlineReference" : {
38
+ "description" : "Reference to an inlined object: file path + #uuid.",
39
+ "pattern" : ".*\\.yaml#[0-9a-f-]+$",
40
+ "type" : "string"
41
+ },
42
+ "localReference" : {
43
+ "description" : "Relative path to another YAML file.",
44
+ "pattern" : "^#[0-9a-f-]+$",
45
+ "type" : "string"
46
+ },
47
+ "multilanguageStringStructure" : {
48
+ "description" : "A multi-language string: a plain string for single-language data, or an object keyed by locale.",
49
+ "oneOf" : [ {
50
+ "type" : "string"
51
+ }, {
52
+ "additionalProperties" : {
53
+ "type" : "string"
54
+ },
55
+ "type" : "object"
56
+ } ]
57
+ }
58
+ },
59
+ "$id" : "https://grexx.net/studio-next/schemas/common.schema.json",
60
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
61
+ "description" : "Shared type definitions used across Studio Next schemas.",
62
+ "title" : "Common definitions"
63
+ }