@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,77 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/url.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "operator" : {
8
+ "const" : "case"
9
+ }
10
+ },
11
+ "required" : [ "operator" ]
12
+ },
13
+ "then" : {
14
+ "properties" : {
15
+ "case" : {
16
+ "$ref" : "inlineTemplate.schema.json"
17
+ },
18
+ "view" : {
19
+ "$ref" : "../common.schema.json#/$defs/caseIdOrFileReference"
20
+ }
21
+ }
22
+ }
23
+ }, {
24
+ "if" : {
25
+ "properties" : {
26
+ "operator" : {
27
+ "const" : "casePath"
28
+ }
29
+ },
30
+ "required" : [ "operator" ]
31
+ },
32
+ "then" : {
33
+ "properties" : {
34
+ "case" : {
35
+ "$ref" : "inlineTemplate.schema.json"
36
+ },
37
+ "view" : {
38
+ "$ref" : "../common.schema.json#/$defs/caseIdOrFileReference"
39
+ }
40
+ }
41
+ }
42
+ }, {
43
+ "if" : {
44
+ "properties" : {
45
+ "operator" : {
46
+ "const" : "page"
47
+ }
48
+ },
49
+ "required" : [ "operator" ]
50
+ },
51
+ "then" : {
52
+ "properties" : {
53
+ "page" : {
54
+ "$ref" : "inlineTemplate.schema.json"
55
+ }
56
+ }
57
+ }
58
+ } ],
59
+ "properties" : {
60
+ "operator" : {
61
+ "enum" : [ "case", "casePath", "page", "platform" ],
62
+ "type" : "string"
63
+ },
64
+ "platform" : {
65
+ "$ref" : "inlineTemplate.schema.json"
66
+ },
67
+ "returnType" : {
68
+ "$ref" : "returnType.schema.json"
69
+ },
70
+ "type" : {
71
+ "const" : "url"
72
+ }
73
+ },
74
+ "required" : [ "type", "operator" ],
75
+ "title" : "url",
76
+ "type" : "object"
77
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/urlParameter.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "properties" : {
5
+ "allowHtml" : {
6
+ "type" : "string"
7
+ },
8
+ "parameter" : {
9
+ "type" : "string"
10
+ },
11
+ "returnType" : {
12
+ "$ref" : "returnType.schema.json"
13
+ },
14
+ "type" : {
15
+ "const" : "urlParameter"
16
+ }
17
+ },
18
+ "required" : [ "type" ],
19
+ "title" : "urlParameter",
20
+ "type" : "object"
21
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/user.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "value" : {
8
+ "const" : "currentuser"
9
+ }
10
+ },
11
+ "required" : [ "value" ]
12
+ },
13
+ "then" : {
14
+ "properties" : {
15
+ "link" : {
16
+ "$ref" : "templatePart.schema.json"
17
+ }
18
+ }
19
+ }
20
+ } ],
21
+ "properties" : {
22
+ "returnType" : {
23
+ "$ref" : "returnType.schema.json"
24
+ },
25
+ "type" : {
26
+ "const" : "user"
27
+ },
28
+ "value" : {
29
+ "enum" : [ "currentuser" ],
30
+ "type" : "string"
31
+ }
32
+ },
33
+ "required" : [ "type", "value" ],
34
+ "title" : "user",
35
+ "type" : "object"
36
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/userProperty.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "properties" : {
5
+ "returnType" : {
6
+ "$ref" : "returnType.schema.json"
7
+ },
8
+ "type" : {
9
+ "const" : "userProperty"
10
+ },
11
+ "user" : {
12
+ "$ref" : "inlineTemplate.schema.json"
13
+ },
14
+ "value" : {
15
+ "enum" : [ "lastActive", "lastLogin" ],
16
+ "type" : "string"
17
+ }
18
+ },
19
+ "required" : [ "type", "value" ],
20
+ "title" : "userProperty",
21
+ "type" : "object"
22
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/usersession.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "properties" : {
5
+ "key" : {
6
+ "type" : "string"
7
+ },
8
+ "returnType" : {
9
+ "$ref" : "returnType.schema.json"
10
+ },
11
+ "type" : {
12
+ "const" : "usersession"
13
+ }
14
+ },
15
+ "required" : [ "type" ],
16
+ "title" : "usersession",
17
+ "type" : "object"
18
+ }
@@ -0,0 +1,434 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/util.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "operator" : {
8
+ "const" : "appendstring"
9
+ }
10
+ },
11
+ "required" : [ "operator" ]
12
+ },
13
+ "then" : {
14
+ "properties" : {
15
+ "padding" : {
16
+ "$ref" : "inlineTemplate.schema.json"
17
+ },
18
+ "param" : {
19
+ "$ref" : "inlineTemplate.schema.json"
20
+ },
21
+ "size" : {
22
+ "type" : "integer"
23
+ }
24
+ }
25
+ }
26
+ }, {
27
+ "if" : {
28
+ "properties" : {
29
+ "operator" : {
30
+ "const" : "base64decode"
31
+ }
32
+ },
33
+ "required" : [ "operator" ]
34
+ },
35
+ "then" : {
36
+ "properties" : {
37
+ "param" : {
38
+ "$ref" : "inlineTemplate.schema.json"
39
+ }
40
+ }
41
+ }
42
+ }, {
43
+ "if" : {
44
+ "properties" : {
45
+ "operator" : {
46
+ "const" : "base64encode"
47
+ }
48
+ },
49
+ "required" : [ "operator" ]
50
+ },
51
+ "then" : {
52
+ "properties" : {
53
+ "param" : {
54
+ "$ref" : "inlineTemplate.schema.json"
55
+ }
56
+ }
57
+ }
58
+ }, {
59
+ "if" : {
60
+ "properties" : {
61
+ "operator" : {
62
+ "const" : "bytelength"
63
+ }
64
+ },
65
+ "required" : [ "operator" ]
66
+ },
67
+ "then" : {
68
+ "properties" : {
69
+ "charset" : {
70
+ "type" : "string"
71
+ },
72
+ "param" : {
73
+ "$ref" : "inlineTemplate.schema.json"
74
+ }
75
+ }
76
+ }
77
+ }, {
78
+ "if" : {
79
+ "properties" : {
80
+ "operator" : {
81
+ "const" : "decimalFormat"
82
+ }
83
+ },
84
+ "required" : [ "operator" ]
85
+ },
86
+ "then" : {
87
+ "properties" : {
88
+ "country" : {
89
+ "type" : "string"
90
+ },
91
+ "decimalSeparator" : {
92
+ "type" : "string"
93
+ },
94
+ "formatString" : {
95
+ "$ref" : "inlineTemplate.schema.json"
96
+ },
97
+ "groupSeparator" : {
98
+ "type" : "string"
99
+ },
100
+ "groupSize" : {
101
+ "type" : "integer"
102
+ },
103
+ "language" : {
104
+ "type" : "string"
105
+ },
106
+ "nullValue" : {
107
+ "type" : "string"
108
+ },
109
+ "param" : {
110
+ "$ref" : "inlineTemplate.schema.json"
111
+ }
112
+ }
113
+ }
114
+ }, {
115
+ "if" : {
116
+ "properties" : {
117
+ "operator" : {
118
+ "const" : "escapeHTML"
119
+ }
120
+ },
121
+ "required" : [ "operator" ]
122
+ },
123
+ "then" : {
124
+ "properties" : {
125
+ "param" : {
126
+ "$ref" : "inlineTemplate.schema.json"
127
+ }
128
+ }
129
+ }
130
+ }, {
131
+ "if" : {
132
+ "properties" : {
133
+ "operator" : {
134
+ "const" : "escapeJSON"
135
+ }
136
+ },
137
+ "required" : [ "operator" ]
138
+ },
139
+ "then" : {
140
+ "properties" : {
141
+ "param" : {
142
+ "$ref" : "inlineTemplate.schema.json"
143
+ }
144
+ }
145
+ }
146
+ }, {
147
+ "if" : {
148
+ "properties" : {
149
+ "operator" : {
150
+ "const" : "hash"
151
+ }
152
+ },
153
+ "required" : [ "operator" ]
154
+ },
155
+ "then" : {
156
+ "properties" : {
157
+ "algorithm" : {
158
+ "type" : "string"
159
+ },
160
+ "outputEncoding" : {
161
+ "type" : "string"
162
+ },
163
+ "pepper" : {
164
+ "type" : "string"
165
+ },
166
+ "salt" : {
167
+ "$ref" : "inlineTemplate.schema.json"
168
+ },
169
+ "signingKey" : {
170
+ "$ref" : "inlineTemplate.schema.json"
171
+ },
172
+ "value" : {
173
+ "$ref" : "inlineTemplate.schema.json"
174
+ }
175
+ }
176
+ }
177
+ }, {
178
+ "if" : {
179
+ "properties" : {
180
+ "operator" : {
181
+ "const" : "prependstring"
182
+ }
183
+ },
184
+ "required" : [ "operator" ]
185
+ },
186
+ "then" : {
187
+ "properties" : {
188
+ "padding" : {
189
+ "$ref" : "inlineTemplate.schema.json"
190
+ },
191
+ "param" : {
192
+ "$ref" : "inlineTemplate.schema.json"
193
+ },
194
+ "size" : {
195
+ "type" : "integer"
196
+ }
197
+ }
198
+ }
199
+ }, {
200
+ "if" : {
201
+ "properties" : {
202
+ "operator" : {
203
+ "const" : "randomString"
204
+ }
205
+ },
206
+ "required" : [ "operator" ]
207
+ },
208
+ "then" : {
209
+ "properties" : {
210
+ "size" : {
211
+ "type" : "integer"
212
+ }
213
+ }
214
+ }
215
+ }, {
216
+ "if" : {
217
+ "properties" : {
218
+ "operator" : {
219
+ "const" : "regexFind"
220
+ }
221
+ },
222
+ "required" : [ "operator" ]
223
+ },
224
+ "then" : {
225
+ "properties" : {
226
+ "param" : {
227
+ "$ref" : "inlineTemplate.schema.json"
228
+ },
229
+ "regex" : {
230
+ "$ref" : "inlineTemplate.schema.json"
231
+ }
232
+ }
233
+ }
234
+ }, {
235
+ "if" : {
236
+ "properties" : {
237
+ "operator" : {
238
+ "const" : "regexReplace"
239
+ }
240
+ },
241
+ "required" : [ "operator" ]
242
+ },
243
+ "then" : {
244
+ "properties" : {
245
+ "param" : {
246
+ "$ref" : "inlineTemplate.schema.json"
247
+ },
248
+ "regex" : {
249
+ "$ref" : "inlineTemplate.schema.json"
250
+ },
251
+ "replaceWith" : {
252
+ "$ref" : "inlineTemplate.schema.json"
253
+ }
254
+ }
255
+ }
256
+ }, {
257
+ "if" : {
258
+ "properties" : {
259
+ "operator" : {
260
+ "const" : "regexSplit"
261
+ }
262
+ },
263
+ "required" : [ "operator" ]
264
+ },
265
+ "then" : {
266
+ "properties" : {
267
+ "param" : {
268
+ "$ref" : "inlineTemplate.schema.json"
269
+ },
270
+ "regex" : {
271
+ "$ref" : "inlineTemplate.schema.json"
272
+ }
273
+ }
274
+ }
275
+ }, {
276
+ "if" : {
277
+ "properties" : {
278
+ "operator" : {
279
+ "const" : "replace"
280
+ }
281
+ },
282
+ "required" : [ "operator" ]
283
+ },
284
+ "then" : {
285
+ "properties" : {
286
+ "needle" : {
287
+ "$ref" : "inlineTemplate.schema.json"
288
+ },
289
+ "param" : {
290
+ "$ref" : "inlineTemplate.schema.json"
291
+ },
292
+ "replacement" : {
293
+ "$ref" : "inlineTemplate.schema.json"
294
+ }
295
+ }
296
+ }
297
+ }, {
298
+ "if" : {
299
+ "properties" : {
300
+ "operator" : {
301
+ "const" : "split"
302
+ }
303
+ },
304
+ "required" : [ "operator" ]
305
+ },
306
+ "then" : {
307
+ "properties" : {
308
+ "param" : {
309
+ "$ref" : "inlineTemplate.schema.json"
310
+ },
311
+ "split" : {
312
+ "$ref" : "inlineTemplate.schema.json"
313
+ }
314
+ }
315
+ }
316
+ }, {
317
+ "if" : {
318
+ "properties" : {
319
+ "operator" : {
320
+ "const" : "stringlength"
321
+ }
322
+ },
323
+ "required" : [ "operator" ]
324
+ },
325
+ "then" : {
326
+ "properties" : {
327
+ "param" : {
328
+ "$ref" : "inlineTemplate.schema.json"
329
+ }
330
+ }
331
+ }
332
+ }, {
333
+ "if" : {
334
+ "properties" : {
335
+ "operator" : {
336
+ "const" : "substring"
337
+ }
338
+ },
339
+ "required" : [ "operator" ]
340
+ },
341
+ "then" : {
342
+ "properties" : {
343
+ "endPosition" : {
344
+ "$ref" : "inlineTemplate.schema.json"
345
+ },
346
+ "param" : {
347
+ "$ref" : "inlineTemplate.schema.json"
348
+ },
349
+ "startPosition" : {
350
+ "$ref" : "inlineTemplate.schema.json"
351
+ }
352
+ }
353
+ }
354
+ }, {
355
+ "if" : {
356
+ "properties" : {
357
+ "operator" : {
358
+ "const" : "toLowercase"
359
+ }
360
+ },
361
+ "required" : [ "operator" ]
362
+ },
363
+ "then" : {
364
+ "properties" : {
365
+ "param" : {
366
+ "$ref" : "inlineTemplate.schema.json"
367
+ }
368
+ }
369
+ }
370
+ }, {
371
+ "if" : {
372
+ "properties" : {
373
+ "operator" : {
374
+ "const" : "toUppercase"
375
+ }
376
+ },
377
+ "required" : [ "operator" ]
378
+ },
379
+ "then" : {
380
+ "properties" : {
381
+ "param" : {
382
+ "$ref" : "inlineTemplate.schema.json"
383
+ }
384
+ }
385
+ }
386
+ }, {
387
+ "if" : {
388
+ "properties" : {
389
+ "operator" : {
390
+ "const" : "trim"
391
+ }
392
+ },
393
+ "required" : [ "operator" ]
394
+ },
395
+ "then" : {
396
+ "properties" : {
397
+ "param" : {
398
+ "$ref" : "inlineTemplate.schema.json"
399
+ }
400
+ }
401
+ }
402
+ }, {
403
+ "if" : {
404
+ "properties" : {
405
+ "operator" : {
406
+ "const" : "urlencode"
407
+ }
408
+ },
409
+ "required" : [ "operator" ]
410
+ },
411
+ "then" : {
412
+ "properties" : {
413
+ "param" : {
414
+ "$ref" : "inlineTemplate.schema.json"
415
+ }
416
+ }
417
+ }
418
+ } ],
419
+ "properties" : {
420
+ "operator" : {
421
+ "enum" : [ "appendstring", "base64decode", "base64encode", "bytelength", "decimalFormat", "escapeHTML", "escapeJSON", "hash", "prependstring", "randomString", "regexFind", "regexReplace", "regexSplit", "replace", "split", "stringlength", "substring", "toLowercase", "toUppercase", "trim", "urlencode", "UUID" ],
422
+ "type" : "string"
423
+ },
424
+ "returnType" : {
425
+ "$ref" : "returnType.schema.json"
426
+ },
427
+ "type" : {
428
+ "const" : "util"
429
+ }
430
+ },
431
+ "required" : [ "type", "operator" ],
432
+ "title" : "util",
433
+ "type" : "object"
434
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/template/xml.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "operator" : {
8
+ "const" : "path"
9
+ }
10
+ },
11
+ "required" : [ "operator" ]
12
+ },
13
+ "then" : {
14
+ "properties" : {
15
+ "path" : {
16
+ "$ref" : "inlineTemplate.schema.json"
17
+ }
18
+ }
19
+ }
20
+ }, {
21
+ "if" : {
22
+ "properties" : {
23
+ "operator" : {
24
+ "const" : "xslt"
25
+ }
26
+ },
27
+ "required" : [ "operator" ]
28
+ },
29
+ "then" : {
30
+ "properties" : {
31
+ "xslt" : {
32
+ "$ref" : "inlineTemplate.schema.json"
33
+ }
34
+ }
35
+ }
36
+ } ],
37
+ "properties" : {
38
+ "operator" : {
39
+ "enum" : [ "path", "xslt" ],
40
+ "type" : "string"
41
+ },
42
+ "param" : {
43
+ "$ref" : "inlineTemplate.schema.json"
44
+ },
45
+ "returnType" : {
46
+ "$ref" : "returnType.schema.json"
47
+ },
48
+ "type" : {
49
+ "const" : "xml"
50
+ }
51
+ },
52
+ "required" : [ "type", "operator" ],
53
+ "title" : "xml",
54
+ "type" : "object"
55
+ }