@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,191 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/platformRole.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": "platformRole"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "aiAgents": {
36
+ "items": {
37
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
38
+ },
39
+ "type": "array"
40
+ },
41
+ "attribute": {
42
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
43
+ },
44
+ "condition": {
45
+ "$ref": "abstractCondition.schema.json"
46
+ },
47
+ "description": {
48
+ "$ref": "template/inlineTemplate.schema.json"
49
+ },
50
+ "inactive": {
51
+ "type": "boolean"
52
+ },
53
+ "indirectPlatformRole": {
54
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
+ },
56
+ "interfaceStudioProduct": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
+ },
59
+ "metaCaseToOtap": {
60
+ "type": "boolean"
61
+ },
62
+ "onlyForRoleProperties": {
63
+ "items": {
64
+ "enum": [
65
+ "debugall",
66
+ "debug-read-all",
67
+ "debug-write-recalculate",
68
+ "debug-write-task-queue",
69
+ "debug-write-any-activity",
70
+ "debug-write-active-requests",
71
+ "debug-write-case",
72
+ "debug-write-platform_status",
73
+ "debug-write-impersonate",
74
+ "debug-read-case",
75
+ "debug-read-inspector",
76
+ "debug-read-historic-view",
77
+ "debug-read-historic-attribute",
78
+ "debug-read-platform",
79
+ "debug-read-active-requests",
80
+ "debug-read-adhoc-dataset",
81
+ "debug-read-template",
82
+ "debug-read-impersonate",
83
+ "debug-read-user",
84
+ "debug-read-role",
85
+ "debug-read-task-queue",
86
+ "debug-read-any-activity",
87
+ "debug-read-any-agent-conversation",
88
+ "debug-read-logs",
89
+ "debug-read-errors",
90
+ "debug-read-auto-progress"
91
+ ],
92
+ "type": "string"
93
+ },
94
+ "type": "array"
95
+ },
96
+ "ourProductId": {
97
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
98
+ },
99
+ "page": {
100
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
101
+ },
102
+ "platformRoleType": {
103
+ "enum": [
104
+ "Direct",
105
+ "Indirect",
106
+ "Special",
107
+ "agent"
108
+ ],
109
+ "type": "string"
110
+ },
111
+ "securityprofile": {
112
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
113
+ },
114
+ "specialRoleType": {
115
+ "enum": [
116
+ "public",
117
+ "anyCase",
118
+ "noCase",
119
+ "debugAll"
120
+ ],
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "_type",
126
+ "_uid",
127
+ "platformRoleType"
128
+ ],
129
+ "title": "platformRole",
130
+ "type": "object",
131
+ "allOf": [
132
+ {
133
+ "properties": {
134
+ "aiAgents": false
135
+ }
136
+ },
137
+ {
138
+ "if": {
139
+ "properties": {
140
+ "platformRoleType": {
141
+ "const": "Direct"
142
+ }
143
+ },
144
+ "required": [
145
+ "platformRoleType"
146
+ ]
147
+ },
148
+ "then": {
149
+ "required": [
150
+ "attribute",
151
+ "page"
152
+ ]
153
+ }
154
+ },
155
+ {
156
+ "if": {
157
+ "properties": {
158
+ "platformRoleType": {
159
+ "const": "Indirect"
160
+ }
161
+ },
162
+ "required": [
163
+ "platformRoleType"
164
+ ]
165
+ },
166
+ "then": {
167
+ "required": [
168
+ "indirectPlatformRole"
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "if": {
174
+ "properties": {
175
+ "platformRoleType": {
176
+ "const": "Special"
177
+ }
178
+ },
179
+ "required": [
180
+ "platformRoleType"
181
+ ]
182
+ },
183
+ "then": {
184
+ "required": [
185
+ "specialRoleType"
186
+ ]
187
+ }
188
+ }
189
+ ],
190
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/platformRole.json."
191
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/platformconstants.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties" : false,
5
+ "properties" : {
6
+ "_type" : {
7
+ "const" : "platformconstants"
8
+ },
9
+ "_uid" : {
10
+ "description" : "Deterministic UUID derived from case-ID.",
11
+ "format" : "uuid",
12
+ "type" : "string"
13
+ },
14
+ "core.additionalRuleOnAuthentication" : {
15
+ "oneOf" : [ {
16
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
17
+ }, {
18
+ "$ref" : "ruleList.schema.json"
19
+ } ]
20
+ },
21
+ "core.allowedOpenRegistrationProviders" : {
22
+ "items" : {
23
+ "type" : "string"
24
+ },
25
+ "type" : "array"
26
+ },
27
+ "core.availableLocales" : {
28
+ "items" : {
29
+ "type" : "string"
30
+ },
31
+ "type" : "array"
32
+ },
33
+ "core.businessDaysSettingsTimeEnd" : {
34
+ "type" : "string"
35
+ },
36
+ "core.businessDaysSettingsTimeStart" : {
37
+ "type" : "string"
38
+ },
39
+ "core.dataRetention.deletedConfig.dataDelete.Days" : {
40
+ "type" : "integer"
41
+ },
42
+ "core.defaultLocale" : {
43
+ "type" : "string"
44
+ },
45
+ "core.disableBrowserTranslation" : {
46
+ "type" : "boolean"
47
+ },
48
+ "core.doUseSmallDatatypes" : {
49
+ "type" : "boolean"
50
+ },
51
+ "core.openRegistrationActivity" : {
52
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
53
+ },
54
+ "core.platformCss" : {
55
+ "type" : "string"
56
+ },
57
+ "core.platformCssTemplates" : {
58
+ "type" : "string"
59
+ },
60
+ "core.platformDateOnlyFormat" : {
61
+ "type" : "string"
62
+ },
63
+ "core.platformDateTimeFormat" : {
64
+ "type" : "string"
65
+ },
66
+ "core.platformGridTheme" : {
67
+ "type" : "string"
68
+ },
69
+ "core.platformTheme" : {
70
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
71
+ },
72
+ "core.studioLocale" : {
73
+ "type" : "string"
74
+ },
75
+ "devref" : {
76
+ "type" : "string"
77
+ },
78
+ "gui.defaultGridAutoHeight" : {
79
+ "type" : "boolean"
80
+ },
81
+ "gui.defaultGridTextSelection" : {
82
+ "type" : "string"
83
+ },
84
+ "gui.useNewestFormVersion" : {
85
+ "type" : "boolean"
86
+ },
87
+ "gui.userCollaborationType" : {
88
+ "type" : "string"
89
+ }
90
+ },
91
+ "required" : [ "_type", "_uid" ],
92
+ "title" : "platformconstants",
93
+ "type" : "object"
94
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/plugin.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" : "plugin"
29
+ },
30
+ "_uid" : {
31
+ "description" : "Deterministic UUID derived from case-ID.",
32
+ "format" : "uuid",
33
+ "type" : "string"
34
+ },
35
+ "datasets" : {
36
+ "items" : {
37
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
38
+ },
39
+ "type" : "array"
40
+ },
41
+ "definitionHTML" : {
42
+ "type" : "string"
43
+ },
44
+ "definitionJavascript" : {
45
+ "type" : "string"
46
+ },
47
+ "definitionStylesheet" : {
48
+ "type" : "string"
49
+ },
50
+ "description" : {
51
+ "$ref" : "template/inlineTemplate.schema.json"
52
+ },
53
+ "enabled" : {
54
+ "type" : "boolean"
55
+ },
56
+ "forms" : {
57
+ "items" : {
58
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
59
+ },
60
+ "type" : "array"
61
+ },
62
+ "inactive" : {
63
+ "type" : "boolean"
64
+ },
65
+ "interfaceStudioProduct" : {
66
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
67
+ },
68
+ "metaCaseToOtap" : {
69
+ "type" : "boolean"
70
+ },
71
+ "name" : {
72
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
73
+ },
74
+ "ourProductId" : {
75
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
76
+ },
77
+ "pluginLibrary" : {
78
+ "items" : {
79
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
80
+ },
81
+ "type" : "array"
82
+ },
83
+ "type" : {
84
+ "type" : "string"
85
+ },
86
+ "version" : {
87
+ "type" : "string"
88
+ },
89
+ "views" : {
90
+ "items" : {
91
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
92
+ },
93
+ "type" : "array"
94
+ }
95
+ },
96
+ "required" : [ "_type", "_uid" ],
97
+ "title" : "plugin",
98
+ "type" : "object"
99
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/pluginLibrary.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": "pluginLibrary"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "css": {
36
+ "$ref": "template/inlineTemplate.schema.json"
37
+ },
38
+ "defer": {
39
+ "type": "boolean"
40
+ },
41
+ "description": {
42
+ "$ref": "template/inlineTemplate.schema.json"
43
+ },
44
+ "disableCORS": {
45
+ "type": "boolean"
46
+ },
47
+ "inactive": {
48
+ "type": "boolean"
49
+ },
50
+ "interfaceStudioProduct": {
51
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
52
+ },
53
+ "javascript": {
54
+ "$ref": "template/inlineTemplate.schema.json"
55
+ },
56
+ "metaCaseToOtap": {
57
+ "type": "boolean"
58
+ },
59
+ "name": {
60
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
61
+ },
62
+ "ourProductId": {
63
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
64
+ },
65
+ "version": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "required": [
70
+ "_type",
71
+ "_uid",
72
+ "name",
73
+ "version"
74
+ ],
75
+ "title": "pluginLibrary",
76
+ "type": "object",
77
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/pluginLibrary.json."
78
+ }
@@ -0,0 +1,183 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/requestContext.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": "requestContext"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "contexttype": {
36
+ "enum": [
37
+ "context",
38
+ "usersession",
39
+ "additionalSecurityProfile",
40
+ "platformbrand",
41
+ "platformname",
42
+ "platformidentityprovider",
43
+ "platformlogouturi",
44
+ "platformmailprofile",
45
+ "impersonate",
46
+ "resetimpersonate",
47
+ "agentaddglobalcase"
48
+ ],
49
+ "type": "string"
50
+ },
51
+ "description": {
52
+ "$ref": "template/inlineTemplate.schema.json"
53
+ },
54
+ "fromInlineTemplate": {
55
+ "$ref": "template/inlineTemplate.schema.json"
56
+ },
57
+ "inactive": {
58
+ "type": "boolean"
59
+ },
60
+ "interfaceStudioProduct": {
61
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
62
+ },
63
+ "metaCaseToOtap": {
64
+ "type": "boolean"
65
+ },
66
+ "ourProductId": {
67
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
68
+ },
69
+ "progressTemplate": {
70
+ "$ref": "template/inlineTemplate.schema.json"
71
+ },
72
+ "progressTitle": {
73
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
74
+ },
75
+ "securityProfile": {
76
+ "items": {
77
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
78
+ },
79
+ "type": "array"
80
+ },
81
+ "showProgress": {
82
+ "type": "boolean"
83
+ },
84
+ "type": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "required": [
89
+ "_type",
90
+ "_uid"
91
+ ],
92
+ "title": "requestContext",
93
+ "type": "object",
94
+ "allOf": [
95
+ {
96
+ "if": {
97
+ "anyOf": [
98
+ {
99
+ "properties": {
100
+ "contexttype": {
101
+ "const": "context"
102
+ }
103
+ },
104
+ "required": [
105
+ "contexttype"
106
+ ]
107
+ },
108
+ {
109
+ "properties": {
110
+ "contexttype": {
111
+ "const": "usersession"
112
+ }
113
+ },
114
+ "required": [
115
+ "contexttype"
116
+ ]
117
+ },
118
+ {
119
+ "properties": {
120
+ "contexttype": {
121
+ "const": "context"
122
+ }
123
+ },
124
+ "required": [
125
+ "contexttype"
126
+ ]
127
+ },
128
+ {
129
+ "properties": {
130
+ "contexttype": {
131
+ "const": "usersession"
132
+ }
133
+ },
134
+ "required": [
135
+ "contexttype"
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ "then": {},
141
+ "else": {
142
+ "properties": {
143
+ "type": false
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "if": {
149
+ "properties": {
150
+ "contexttype": {
151
+ "const": "context"
152
+ }
153
+ },
154
+ "required": [
155
+ "contexttype"
156
+ ]
157
+ },
158
+ "then": {
159
+ "required": [
160
+ "type"
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ "if": {
166
+ "properties": {
167
+ "contexttype": {
168
+ "const": "usersession"
169
+ }
170
+ },
171
+ "required": [
172
+ "contexttype"
173
+ ]
174
+ },
175
+ "then": {
176
+ "required": [
177
+ "type"
178
+ ]
179
+ }
180
+ }
181
+ ],
182
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/requestContext.json."
183
+ }