@grexx/grexxlinter 0.2.326 → 0.2.343

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 (51) hide show
  1. package/cli.js +2 -2
  2. package/lsp.js +1 -1
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +0 -147
  5. package/schemas/activity.schema.json +0 -1
  6. package/schemas/activityRight.schema.json +2 -8
  7. package/schemas/attribute.schema.json +10 -0
  8. package/schemas/casetype.schema.json +0 -1
  9. package/schemas/catchBlock.schema.json +1 -2
  10. package/schemas/conditionList.schema.json +69 -50
  11. package/schemas/container.schema.json +1 -7
  12. package/schemas/datasetColumn.schema.json +0 -5
  13. package/schemas/datasetRight.schema.json +0 -2
  14. package/schemas/directRole.schema.json +0 -7
  15. package/schemas/forEach.schema.json +0 -5
  16. package/schemas/formAction.schema.json +1 -7
  17. package/schemas/formActionInlineJavascript.schema.json +49 -54
  18. package/schemas/formGroup.schema.json +71 -82
  19. package/schemas/formRight.schema.json +0 -2
  20. package/schemas/formfield.schema.json +0 -5
  21. package/schemas/gridActivity.schema.json +59 -78
  22. package/schemas/gridColumn.schema.json +107 -144
  23. package/schemas/ifthenelse.schema.json +0 -10
  24. package/schemas/indirectRole.schema.json +0 -7
  25. package/schemas/jobStep.schema.json +47 -64
  26. package/schemas/mapping.schema.json +1 -12
  27. package/schemas/menuItem.schema.json +0 -5
  28. package/schemas/menuItemRight.schema.json +45 -71
  29. package/schemas/metadata.schema.json +3 -1
  30. package/schemas/notCondition.schema.json +45 -66
  31. package/schemas/parallelBlock.schema.json +55 -60
  32. package/schemas/picklist.schema.json +1 -2
  33. package/schemas/picklistItem.schema.json +49 -55
  34. package/schemas/platformRole.schema.json +0 -6
  35. package/schemas/plugin.schema.json +71 -77
  36. package/schemas/pluginLibrary.schema.json +0 -2
  37. package/schemas/requestContext.schema.json +10 -0
  38. package/schemas/securityProfile.schema.json +53 -47
  39. package/schemas/securityRequirement.schema.json +52 -47
  40. package/schemas/simpleCondition.schema.json +0 -5
  41. package/schemas/template/date-function.schema.json +1 -0
  42. package/schemas/template/html.schema.json +1 -0
  43. package/schemas/template/if.schema.json +1 -0
  44. package/schemas/template/iterator.schema.json +1 -0
  45. package/schemas/template/multivalue.schema.json +1 -0
  46. package/schemas/template/picklist.schema.json +1 -0
  47. package/schemas/template/util.schema.json +4 -0
  48. package/schemas/template.schema.json +1 -2
  49. package/schemas/trigger.schema.json +0 -5
  50. package/schemas/tryBlock.schema.json +1 -2
  51. package/schemas/widgetRight.schema.json +1 -2
package/cli.js CHANGED
@@ -14590,7 +14590,7 @@ var import_yaml = __toESM(require_dist(), 1);
14590
14590
  var DEFAULT_RULE_SEVERITY = {
14591
14591
  "required-field": "error",
14592
14592
  "forbidden-field": "error",
14593
- "unknown-field": "error",
14593
+ "unknown-field": "warning",
14594
14594
  "invalid-value": "error",
14595
14595
  "value-case": "warning",
14596
14596
  "invalid-type": "error",
@@ -14793,7 +14793,7 @@ function isLintableYaml(text) {
14793
14793
  // src/cli.ts
14794
14794
  var PARALLEL_THRESHOLD = 200;
14795
14795
  var MAX_WORKERS = 8;
14796
- var VERSION = true ? "0.2.326" : "0.0.0-dev";
14796
+ var VERSION = true ? "0.2.343" : "0.0.0-dev";
14797
14797
  function isNewer(latest, current) {
14798
14798
  const a = latest.split(".").map(Number);
14799
14799
  const b = current.split(".").map(Number);
package/lsp.js CHANGED
@@ -23656,7 +23656,7 @@ function createNodeContext(opts = {}) {
23656
23656
  var DEFAULT_RULE_SEVERITY = {
23657
23657
  "required-field": "error",
23658
23658
  "forbidden-field": "error",
23659
- "unknown-field": "error",
23659
+ "unknown-field": "warning",
23660
23660
  "invalid-value": "error",
23661
23661
  "value-case": "warning",
23662
23662
  "invalid-type": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grexx/grexxlinter",
3
- "version": "0.2.326",
3
+ "version": "0.2.343",
4
4
  "description": "Lint Grexx Studio casetype YAML against the studio JSON Schemas.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2009,34 +2009,6 @@
2009
2009
  },
2010
2010
  "covered": false,
2011
2011
  "reason": "condition not expressible as JSON Schema"
2012
- },
2013
- {
2014
- "modality": "MAY",
2015
- "when": {
2016
- "op": "and",
2017
- "items": [
2018
- {
2019
- "op": "cmp",
2020
- "field": "dateProfile",
2021
- "fieldName": "Date profile",
2022
- "operator": "!==",
2023
- "value": "",
2024
- "valueIsField": false,
2025
- "isEmpty": true
2026
- },
2027
- {
2028
- "op": "cmp",
2029
- "field": "type",
2030
- "fieldName": "Type",
2031
- "operator": "contains",
2032
- "value": "date",
2033
- "valueIsField": false,
2034
- "isEmpty": false
2035
- }
2036
- ]
2037
- },
2038
- "covered": false,
2039
- "reason": "condition not expressible as JSON Schema"
2040
2012
  }
2041
2013
  ]
2042
2014
  },
@@ -7715,30 +7687,6 @@
7715
7687
  }
7716
7688
  }
7717
7689
  },
7718
- "ifthenelse": {
7719
- "schema": "ifthenelse.schema.json",
7720
- "fields": {
7721
- "parentRule": {
7722
- "baseline": "MUST_NOT",
7723
- "clauses": [
7724
- {
7725
- "modality": "MAY",
7726
- "when": {
7727
- "op": "cmp",
7728
- "field": "parentRule",
7729
- "fieldName": "Parent Rule",
7730
- "operator": "==",
7731
- "value": "",
7732
- "valueIsField": false,
7733
- "isEmpty": true
7734
- },
7735
- "covered": false,
7736
- "reason": "condition not expressible as JSON Schema"
7737
- }
7738
- ]
7739
- }
7740
- }
7741
- },
7742
7690
  "indirectRole": {
7743
7691
  "schema": "indirectRole.schema.json",
7744
7692
  "fields": {
@@ -7811,44 +7759,6 @@
7811
7759
  }
7812
7760
  }
7813
7761
  },
7814
- "jobStep": {
7815
- "schema": "jobStep.schema.json",
7816
- "fields": {
7817
- "activity": {
7818
- "baseline": "MUST",
7819
- "clauses": [
7820
- {
7821
- "modality": "MUST",
7822
- "when": {
7823
- "op": "cmp",
7824
- "field": "executeCasetype",
7825
- "fieldName": "Casetype ",
7826
- "operator": "!=",
7827
- "value": "",
7828
- "valueIsField": false,
7829
- "isEmpty": true
7830
- },
7831
- "covered": false,
7832
- "reason": "condition not expressible as JSON Schema"
7833
- },
7834
- {
7835
- "modality": "MAY",
7836
- "when": {
7837
- "op": "cmp",
7838
- "field": "executeCasetype",
7839
- "fieldName": "Casetype ",
7840
- "operator": "!=",
7841
- "value": "",
7842
- "valueIsField": false,
7843
- "isEmpty": true
7844
- },
7845
- "covered": false,
7846
- "reason": "condition not expressible as JSON Schema"
7847
- }
7848
- ]
7849
- }
7850
- }
7851
- },
7852
7762
  "mapping": {
7853
7763
  "schema": "mapping.schema.json",
7854
7764
  "fields": {
@@ -8257,25 +8167,6 @@
8257
8167
  }
8258
8168
  ]
8259
8169
  },
8260
- "parentRule": {
8261
- "baseline": "MUST_NOT",
8262
- "clauses": [
8263
- {
8264
- "modality": "MAY",
8265
- "when": {
8266
- "op": "cmp",
8267
- "field": "parentRule",
8268
- "fieldName": "Parent Rule",
8269
- "operator": "==",
8270
- "value": "",
8271
- "valueIsField": false,
8272
- "isEmpty": true
8273
- },
8274
- "covered": false,
8275
- "reason": "condition not expressible as JSON Schema"
8276
- }
8277
- ]
8278
- },
8279
8170
  "progressTemplate": {
8280
8171
  "baseline": "MUST_NOT",
8281
8172
  "clauses": [
@@ -10197,25 +10088,6 @@
10197
10088
  }
10198
10089
  ]
10199
10090
  },
10200
- "parentRule": {
10201
- "baseline": "MUST_NOT",
10202
- "clauses": [
10203
- {
10204
- "modality": "MAY",
10205
- "when": {
10206
- "op": "cmp",
10207
- "field": "parentRule",
10208
- "fieldName": "Parent Rule",
10209
- "operator": "==",
10210
- "value": "",
10211
- "valueIsField": false,
10212
- "isEmpty": true
10213
- },
10214
- "covered": false,
10215
- "reason": "condition not expressible as JSON Schema"
10216
- }
10217
- ]
10218
- },
10219
10091
  "rightField": {
10220
10092
  "baseline": null,
10221
10093
  "clauses": [
@@ -10805,25 +10677,6 @@
10805
10677
  }
10806
10678
  ]
10807
10679
  },
10808
- "parentRule": {
10809
- "baseline": "MUST_NOT",
10810
- "clauses": [
10811
- {
10812
- "modality": "MAY",
10813
- "when": {
10814
- "op": "cmp",
10815
- "field": "parentRule",
10816
- "fieldName": "Parent Rule",
10817
- "operator": "==",
10818
- "value": "",
10819
- "valueIsField": false,
10820
- "isEmpty": true
10821
- },
10822
- "covered": false,
10823
- "reason": "condition not expressible as JSON Schema"
10824
- }
10825
- ]
10826
- },
10827
10680
  "progressTemplate": {
10828
10681
  "baseline": "MUST_NOT",
10829
10682
  "clauses": [
@@ -253,7 +253,6 @@
253
253
  "required": [
254
254
  "_type",
255
255
  "_uid",
256
- "secondaryActions",
257
256
  "type"
258
257
  ],
259
258
  "title": "activity",
@@ -75,16 +75,10 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "activity"
78
+ "roleName",
79
+ "type"
79
80
  ],
80
81
  "title": "activityRight",
81
82
  "type": "object",
82
- "allOf": [
83
- {
84
- "properties": {
85
- "devParentCase": false
86
- }
87
- }
88
- ],
89
83
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityRight.json."
90
84
  }
@@ -226,6 +226,11 @@
226
226
  "title": "attribute",
227
227
  "type": "object",
228
228
  "allOf": [
229
+ {
230
+ "properties": {
231
+ "calculatedTemplate": false
232
+ }
233
+ },
229
234
  {
230
235
  "properties": {
231
236
  "addActivity": false
@@ -241,6 +246,11 @@
241
246
  "attributeDefaultValue": false
242
247
  }
243
248
  },
249
+ {
250
+ "properties": {
251
+ "linkToPlatform": false
252
+ }
253
+ },
244
254
  {
245
255
  "properties": {
246
256
  "addActivityBase": false
@@ -178,7 +178,6 @@
178
178
  "required": [
179
179
  "_type",
180
180
  "_uid",
181
- "newRulelist",
182
181
  "name",
183
182
  "type"
184
183
  ],
@@ -74,8 +74,7 @@
74
74
  },
75
75
  "required": [
76
76
  "_type",
77
- "_uid",
78
- "root"
77
+ "_uid"
79
78
  ],
80
79
  "title": "catchBlock",
81
80
  "type": "object",
@@ -1,67 +1,86 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/conditionList.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"
2
+ "$id": "https://grexx.net/studio-next/schemas/conditionList.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
18
  },
19
- "type" : "array"
19
+ "type": "array"
20
20
  },
21
- "_origin" : {
22
- "type" : "string"
21
+ "_origin": {
22
+ "type": "string"
23
23
  },
24
- "_src" : {
25
- "type" : "string"
24
+ "_src": {
25
+ "type": "string"
26
26
  },
27
- "_type" : {
28
- "const" : "conditionList"
27
+ "_type": {
28
+ "const": "conditionList"
29
29
  },
30
- "_uid" : {
31
- "description" : "Deterministic UUID derived from case-ID.",
32
- "format" : "uuid",
33
- "type" : "string"
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
34
  },
35
- "conditions" : {
36
- "items" : {
37
- "$ref" : "abstractCondition.schema.json"
35
+ "conditions": {
36
+ "items": {
37
+ "$ref": "abstractCondition.schema.json"
38
38
  },
39
- "type" : "array"
39
+ "type": "array"
40
40
  },
41
- "description" : {
42
- "$ref" : "template/inlineTemplate.schema.json"
41
+ "description": {
42
+ "$ref": "template/inlineTemplate.schema.json"
43
43
  },
44
- "inactive" : {
45
- "type" : "boolean"
44
+ "inactive": {
45
+ "type": "boolean"
46
46
  },
47
- "interfaceStudioProduct" : {
48
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
47
+ "interfaceStudioProduct": {
48
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
49
49
  },
50
- "metaCaseToOtap" : {
51
- "type" : "boolean"
50
+ "metaCaseToOtap": {
51
+ "type": "boolean"
52
52
  },
53
- "negate" : {
54
- "type" : "boolean"
53
+ "negate": {
54
+ "type": "boolean"
55
55
  },
56
- "ourProductId" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "ourProductId": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "type" : {
60
- "enum" : [ "AND", "OR" ],
61
- "type" : "string"
59
+ "type": {
60
+ "enum": [
61
+ "AND",
62
+ "OR"
63
+ ],
64
+ "type": "string"
62
65
  }
63
66
  },
64
- "required" : [ "_type", "_uid" ],
65
- "title" : "conditionList",
66
- "type" : "object"
67
- }
67
+ "required": [
68
+ "_type",
69
+ "_uid"
70
+ ],
71
+ "title": "conditionList",
72
+ "type": "object",
73
+ "allOf": [
74
+ {
75
+ "properties": {
76
+ "hasValidConfiguration": false
77
+ }
78
+ },
79
+ {
80
+ "properties": {
81
+ "wasEverFullyConfigured": false
82
+ }
83
+ }
84
+ ],
85
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/conditionList.json."
86
+ }
@@ -73,17 +73,11 @@
73
73
  },
74
74
  "required": [
75
75
  "_type",
76
- "_uid",
77
- "view"
76
+ "_uid"
78
77
  ],
79
78
  "title": "container",
80
79
  "type": "object",
81
80
  "allOf": [
82
- {
83
- "properties": {
84
- "devParentCase": false
85
- }
86
- },
87
81
  {
88
82
  "properties": {
89
83
  "showSingleTab": false
@@ -138,11 +138,6 @@
138
138
  }
139
139
  }
140
140
  },
141
- {
142
- "properties": {
143
- "caseSummary": false
144
- }
145
- },
146
141
  {
147
142
  "properties": {
148
143
  "multivalueType": false
@@ -76,8 +76,6 @@
76
76
  "_type",
77
77
  "_uid",
78
78
  "condition",
79
- "dataset",
80
- "name",
81
79
  "roleName",
82
80
  "type"
83
81
  ],
@@ -67,12 +67,5 @@
67
67
  ],
68
68
  "title": "directRole",
69
69
  "type": "object",
70
- "allOf": [
71
- {
72
- "properties": {
73
- "devParentCase": false
74
- }
75
- }
76
- ],
77
70
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/directRole.json."
78
71
  }
@@ -85,11 +85,6 @@
85
85
  "title": "forEach",
86
86
  "type": "object",
87
87
  "allOf": [
88
- {
89
- "properties": {
90
- "devParentCase": false
91
- }
92
- },
93
88
  {
94
89
  "properties": {
95
90
  "multivalueTemplate": false
@@ -112,8 +112,7 @@
112
112
  },
113
113
  "required": [
114
114
  "_type",
115
- "_uid",
116
- "root"
115
+ "_uid"
117
116
  ],
118
117
  "title": "formAction",
119
118
  "type": "object",
@@ -128,11 +127,6 @@
128
127
  "multivalueType": false
129
128
  }
130
129
  },
131
- {
132
- "properties": {
133
- "devParentCase": false
134
- }
135
- },
136
130
  {
137
131
  "if": {
138
132
  "properties": {
@@ -1,71 +1,66 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/formActionInlineJavascript.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"
2
+ "$id" : "https://grexx.net/studio-next/schemas/formActionInlineJavascript.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
18
  },
19
- "type": "array"
19
+ "type" : "array"
20
20
  },
21
- "_origin": {
22
- "type": "string"
21
+ "_origin" : {
22
+ "type" : "string"
23
23
  },
24
- "_src": {
25
- "type": "string"
24
+ "_src" : {
25
+ "type" : "string"
26
26
  },
27
- "_type": {
28
- "const": "formActionInlineJavascript"
27
+ "_type" : {
28
+ "const" : "formActionInlineJavascript"
29
29
  },
30
- "_uid": {
31
- "description": "Deterministic UUID derived from case-ID.",
32
- "format": "uuid",
33
- "type": "string"
30
+ "_uid" : {
31
+ "description" : "Deterministic UUID derived from case-ID.",
32
+ "format" : "uuid",
33
+ "type" : "string"
34
34
  },
35
- "codeBlock": {
36
- "type": "string"
35
+ "codeBlock" : {
36
+ "type" : "string"
37
37
  },
38
- "description": {
39
- "$ref": "template/inlineTemplate.schema.json"
38
+ "description" : {
39
+ "$ref" : "template/inlineTemplate.schema.json"
40
40
  },
41
- "inactive": {
42
- "type": "boolean"
41
+ "inactive" : {
42
+ "type" : "boolean"
43
43
  },
44
- "interfaceStudioProduct": {
45
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
44
+ "interfaceStudioProduct" : {
45
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
46
46
  },
47
- "metaCaseToOtap": {
48
- "type": "boolean"
47
+ "metaCaseToOtap" : {
48
+ "type" : "boolean"
49
49
  },
50
- "ourProductId": {
51
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "ourProductId" : {
51
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  },
53
- "progressTemplate": {
54
- "$ref": "template/inlineTemplate.schema.json"
53
+ "progressTemplate" : {
54
+ "$ref" : "template/inlineTemplate.schema.json"
55
55
  },
56
- "progressTitle": {
57
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
56
+ "progressTitle" : {
57
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
58
58
  },
59
- "showProgress": {
60
- "type": "boolean"
59
+ "showProgress" : {
60
+ "type" : "boolean"
61
61
  }
62
62
  },
63
- "required": [
64
- "_type",
65
- "_uid",
66
- "root"
67
- ],
68
- "title": "formActionInlineJavascript",
69
- "type": "object",
70
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formActionInlineJavascript.json."
71
- }
63
+ "required" : [ "_type", "_uid" ],
64
+ "title" : "formActionInlineJavascript",
65
+ "type" : "object"
66
+ }