@solid-stack/builder 1.2.0 → 2.0.1

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 (156) hide show
  1. package/README.md +66 -197
  2. package/dist/bin.js +1768 -2587
  3. package/dist/bin.js.map +1 -1
  4. package/dist/commands/mesh/commands/up/command.d.ts.map +1 -1
  5. package/dist/commands/mesh/commands/up/handler.d.ts.map +1 -1
  6. package/dist/commands/service/commands/down/handler.d.ts.map +1 -1
  7. package/dist/commands/service/commands/export/command.d.ts.map +1 -1
  8. package/dist/commands/service/commands/up/command.d.ts.map +1 -1
  9. package/dist/core/buildSchema.d.ts +1029 -110
  10. package/dist/core/buildSchema.d.ts.map +1 -1
  11. package/dist/core/checkers/checkDockerfile.d.ts.map +1 -1
  12. package/dist/core/checkers/checkDockerfileContract.d.ts +1 -1
  13. package/dist/core/checkers/checkDockerfileContract.d.ts.map +1 -1
  14. package/dist/core/checkers/checkEffectiveServiceStages.d.ts +2 -0
  15. package/dist/core/checkers/checkEffectiveServiceStages.d.ts.map +1 -0
  16. package/dist/core/checkers/checkYamlFiles.d.ts +1 -1
  17. package/dist/core/checkers/checkYamlFiles.d.ts.map +1 -1
  18. package/dist/core/checkers/getDeclaredYamlFiles.d.ts +3 -1
  19. package/dist/core/checkers/getDeclaredYamlFiles.d.ts.map +1 -1
  20. package/dist/core/compileEnvironment.d.ts +1 -1
  21. package/dist/core/compileEnvironment.d.ts.map +1 -1
  22. package/dist/core/composition/compileServiceComposition.d.ts +18 -0
  23. package/dist/core/composition/compileServiceComposition.d.ts.map +1 -0
  24. package/dist/core/composition/composeEnvironment.d.ts +4 -0
  25. package/dist/core/composition/composeEnvironment.d.ts.map +1 -0
  26. package/dist/core/composition/composeNetworks.d.ts +2 -0
  27. package/dist/core/composition/composeNetworks.d.ts.map +1 -0
  28. package/dist/core/composition/composePaths.d.ts +3 -0
  29. package/dist/core/composition/composePaths.d.ts.map +1 -0
  30. package/dist/core/composition/composeVolumes.d.ts +15 -0
  31. package/dist/core/composition/composeVolumes.d.ts.map +1 -0
  32. package/dist/core/composition/dependencyLifecycle.d.ts +4 -0
  33. package/dist/core/composition/dependencyLifecycle.d.ts.map +1 -0
  34. package/dist/core/composition/loadCompose.d.ts +8 -0
  35. package/dist/core/composition/loadCompose.d.ts.map +1 -0
  36. package/dist/core/composition/namespaceDependencyCompose.d.ts +15 -0
  37. package/dist/core/composition/namespaceDependencyCompose.d.ts.map +1 -0
  38. package/dist/core/composition/serviceEndpoints.d.ts +5 -0
  39. package/dist/core/composition/serviceEndpoints.d.ts.map +1 -0
  40. package/dist/core/composition/types.d.ts +64 -0
  41. package/dist/core/composition/types.d.ts.map +1 -0
  42. package/dist/core/composition/validateDependencyCompose.d.ts +8 -0
  43. package/dist/core/composition/validateDependencyCompose.d.ts.map +1 -0
  44. package/dist/core/composition/validateOverrideCompose.d.ts +11 -0
  45. package/dist/core/composition/validateOverrideCompose.d.ts.map +1 -0
  46. package/dist/core/config/constants.d.ts +13 -0
  47. package/dist/core/config/constants.d.ts.map +1 -0
  48. package/dist/core/config/endpointProperties.d.ts +16 -0
  49. package/dist/core/config/endpointProperties.d.ts.map +1 -0
  50. package/dist/core/config/hostPorts.d.ts +10 -0
  51. package/dist/core/config/hostPorts.d.ts.map +1 -0
  52. package/dist/core/config/lifecycleGraph.d.ts +7 -0
  53. package/dist/core/config/lifecycleGraph.d.ts.map +1 -0
  54. package/dist/core/config/pathSafety.d.ts +7 -0
  55. package/dist/core/config/pathSafety.d.ts.map +1 -0
  56. package/dist/core/config/references.d.ts +15 -0
  57. package/dist/core/config/references.d.ts.map +1 -0
  58. package/dist/core/config/resolveBuildStage.d.ts +4 -0
  59. package/dist/core/config/resolveBuildStage.d.ts.map +1 -0
  60. package/dist/core/config/resolveMeshStage.d.ts +4 -0
  61. package/dist/core/config/resolveMeshStage.d.ts.map +1 -0
  62. package/dist/core/config/stageMerge.d.ts +4 -0
  63. package/dist/core/config/stageMerge.d.ts.map +1 -0
  64. package/dist/core/config/types.d.ts +44 -0
  65. package/dist/core/config/types.d.ts.map +1 -0
  66. package/dist/core/mesh/MeshRunOptions.d.ts +0 -1
  67. package/dist/core/mesh/MeshRunOptions.d.ts.map +1 -1
  68. package/dist/core/mesh/checkers/checkMeshJson.d.ts +1 -1
  69. package/dist/core/mesh/checkers/checkMeshJson.d.ts.map +1 -1
  70. package/dist/core/mesh/checkers/checkMeshServices.d.ts +1 -1
  71. package/dist/core/mesh/checkers/checkMeshServices.d.ts.map +1 -1
  72. package/dist/core/mesh/checkers/checkMeshTester.d.ts +1 -1
  73. package/dist/core/mesh/checkers/checkMeshTester.d.ts.map +1 -1
  74. package/dist/core/mesh/compileMeshEnvironment.d.ts +1 -3
  75. package/dist/core/mesh/compileMeshEnvironment.d.ts.map +1 -1
  76. package/dist/core/mesh/getMeshJson.d.ts.map +1 -1
  77. package/dist/core/mesh/meshSchema.d.ts +267 -334
  78. package/dist/core/mesh/meshSchema.d.ts.map +1 -1
  79. package/dist/core/mesh/runners/runMeshDev.d.ts.map +1 -1
  80. package/dist/core/mesh/runners/runMeshProd.d.ts.map +1 -1
  81. package/dist/core/mesh/runners/runMeshTest.d.ts.map +1 -1
  82. package/dist/core/mesh/runners/runMeshTestE2e.d.ts.map +1 -1
  83. package/dist/core/mesh/runners/runMeshTestUnit.d.ts.map +1 -1
  84. package/dist/core/mesh/types.d.ts +34 -40
  85. package/dist/core/mesh/types.d.ts.map +1 -1
  86. package/dist/core/mesh/v2/compileMeshComposition.d.ts +6 -0
  87. package/dist/core/mesh/v2/compileMeshComposition.d.ts.map +1 -0
  88. package/dist/core/mesh/v2/compileMeshTester.d.ts +14 -0
  89. package/dist/core/mesh/v2/compileMeshTester.d.ts.map +1 -0
  90. package/dist/core/mesh/v2/lifecycle.d.ts +10 -0
  91. package/dist/core/mesh/v2/lifecycle.d.ts.map +1 -0
  92. package/dist/core/mesh/v2/loadMeshServices.d.ts +5 -0
  93. package/dist/core/mesh/v2/loadMeshServices.d.ts.map +1 -0
  94. package/dist/core/mesh/v2/meshReferences.d.ts +15 -0
  95. package/dist/core/mesh/v2/meshReferences.d.ts.map +1 -0
  96. package/dist/core/mesh/v2/publication.d.ts +3 -0
  97. package/dist/core/mesh/v2/publication.d.ts.map +1 -0
  98. package/dist/core/mesh/v2/substitution.d.ts +5 -0
  99. package/dist/core/mesh/v2/substitution.d.ts.map +1 -0
  100. package/dist/core/mesh/v2/types.d.ts +40 -0
  101. package/dist/core/mesh/v2/types.d.ts.map +1 -0
  102. package/dist/core/runners/runDev.d.ts.map +1 -1
  103. package/dist/core/runners/runProd.d.ts.map +1 -1
  104. package/dist/core/runners/runTestE2e.d.ts.map +1 -1
  105. package/dist/core/runners/runTestUnit.d.ts.map +1 -1
  106. package/dist/core/teardownCompose.d.ts +1 -0
  107. package/dist/core/teardownCompose.d.ts.map +1 -1
  108. package/dist/core/templates.d.ts +1 -0
  109. package/dist/core/templates.d.ts.map +1 -1
  110. package/dist/errors/ConfigError.d.ts +15 -0
  111. package/dist/errors/ConfigError.d.ts.map +1 -0
  112. package/dist/errors/PortConflictError.d.ts +8 -0
  113. package/dist/errors/PortConflictError.d.ts.map +1 -0
  114. package/dist/index.d.ts +2 -0
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +1770 -2589
  117. package/dist/index.js.map +1 -1
  118. package/dist/templates/docker/docker-compose.base.yml +4 -4
  119. package/dist/templates/docker/docker-compose.dev.yml +1 -5
  120. package/dist/templates/docker/docker-compose.e2e.yml +9 -8
  121. package/dist/templates/docker/docker-compose.prod.yml +1 -6
  122. package/dist/templates/docker/docker-compose.test.yml +3 -8
  123. package/dist/templates/policy/dockerfile/dockerfile.rego +64 -0
  124. package/dist/types/index.d.ts +60 -50
  125. package/dist/types/index.d.ts.map +1 -1
  126. package/dist/utils/checkPortCollision.d.ts.map +1 -1
  127. package/dist/utils/getBuildJson.d.ts.map +1 -1
  128. package/dist/utils/paths.d.ts +2 -0
  129. package/dist/utils/paths.d.ts.map +1 -1
  130. package/dist/utils/runState.d.ts +1 -0
  131. package/dist/utils/runState.d.ts.map +1 -1
  132. package/package.json +7 -2
  133. package/schemas/build-schema.json +620 -101
  134. package/schemas/mesh-schema.json +225 -133
  135. package/templates/docker/docker-compose.base.yml +4 -4
  136. package/templates/docker/docker-compose.dev.yml +1 -5
  137. package/templates/docker/docker-compose.e2e.yml +9 -8
  138. package/templates/docker/docker-compose.prod.yml +1 -6
  139. package/templates/docker/docker-compose.test.yml +3 -8
  140. package/templates/policy/dockerfile/dockerfile.rego +64 -0
  141. package/dist/core/checkers/checkComposeContract.d.ts +0 -3
  142. package/dist/core/checkers/checkComposeContract.d.ts.map +0 -1
  143. package/dist/templates/docker/docker-compose.standalone.yml +0 -5
  144. package/dist/utils/dependencyPorts.d.ts +0 -10
  145. package/dist/utils/dependencyPorts.d.ts.map +0 -1
  146. package/dist/utils/extractBuildDeps.d.ts +0 -3
  147. package/dist/utils/extractBuildDeps.d.ts.map +0 -1
  148. package/dist/utils/extractOverrides.d.ts +0 -3
  149. package/dist/utils/extractOverrides.d.ts.map +0 -1
  150. package/dist/utils/ymlMods/addDependenciesToAppService.d.ts +0 -3
  151. package/dist/utils/ymlMods/addDependenciesToAppService.d.ts.map +0 -1
  152. package/dist/utils/ymlMods/makeE2eDependOnApp.d.ts +0 -2
  153. package/dist/utils/ymlMods/makeE2eDependOnApp.d.ts.map +0 -1
  154. package/dist/utils/ymlMods/renameServicesWithDependencies.d.ts +0 -3
  155. package/dist/utils/ymlMods/renameServicesWithDependencies.d.ts.map +0 -1
  156. package/templates/docker/docker-compose.standalone.yml +0 -5
@@ -1,157 +1,676 @@
1
1
  {
2
- "$ref": "#/definitions/BuildJson",
2
+ "$ref": "#/definitions/BuildJsonV2",
3
3
  "definitions": {
4
- "BuildJson": {
4
+ "BuildJsonV2": {
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
8
- "type": "string",
9
- "description": "JSON Schema URL or relative path"
8
+ "type": "string"
10
9
  },
11
10
  "name": {
12
- "type": "string",
13
- "description": "Service project name"
11
+ "type": "string"
14
12
  },
15
13
  "dockerfile": {
16
14
  "type": "string",
17
- "description": "Relative path to the Dockerfile (defaults to 'Dockerfile')"
15
+ "minLength": 1
18
16
  },
19
- "port": {
20
- "type": [
21
- "number",
22
- "string"
23
- ],
24
- "description": "Host port exposed by this service when listening publicly"
25
- },
26
- "policy": {
17
+ "app": {
27
18
  "type": "object",
28
19
  "properties": {
29
- "dockerfile": {
30
- "type": "string",
31
- "description": "Relative path to policy directory for Dockerfile checks"
32
- },
33
- "compose": {
34
- "type": "string",
35
- "description": "Relative path to policy directory for Compose contract checks"
36
- }
37
- },
38
- "additionalProperties": false,
39
- "description": "Policy configurations for infra/contract verification"
40
- },
41
- "policies": {
42
- "type": "object",
43
- "properties": {
44
- "dockerfile": {
45
- "type": "string",
46
- "description": "Relative path to policy directory for Dockerfile checks"
20
+ "env": {
21
+ "type": "object",
22
+ "additionalProperties": {
23
+ "type": "string"
24
+ }
47
25
  },
48
- "compose": {
49
- "type": "string",
50
- "description": "Relative path to policy directory for Compose contract checks"
26
+ "endpoints": {
27
+ "type": "object",
28
+ "additionalProperties": {
29
+ "type": "object",
30
+ "properties": {
31
+ "port": {
32
+ "type": "integer",
33
+ "minimum": 1,
34
+ "maximum": 65535
35
+ },
36
+ "publicPort": {
37
+ "anyOf": [
38
+ {
39
+ "type": "integer",
40
+ "minimum": 1,
41
+ "maximum": 65535
42
+ },
43
+ {
44
+ "type": "string",
45
+ "const": "AUTO"
46
+ }
47
+ ]
48
+ },
49
+ "primary": {
50
+ "type": "boolean"
51
+ },
52
+ "scheme": {
53
+ "type": "string",
54
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
55
+ }
56
+ },
57
+ "required": [
58
+ "port"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "propertyNames": {
63
+ "pattern": "^[a-z][a-z0-9-]*$"
64
+ }
51
65
  }
52
66
  },
53
- "additionalProperties": false,
54
- "description": "Policy configurations for infra/contract verification"
55
- },
56
- "composeFiles": {
57
- "type": "array",
58
- "items": {
59
- "type": "string"
60
- },
61
- "description": "Additional compose files to merge"
67
+ "additionalProperties": false
62
68
  },
63
69
  "dependencies": {
64
70
  "type": "object",
65
71
  "additionalProperties": {
66
72
  "type": "object",
67
73
  "properties": {
68
- "path": {
74
+ "compose": {
69
75
  "type": "string",
70
- "description": "Relative path to mock Docker Compose file"
76
+ "minLength": 1
71
77
  },
72
- "service": {
73
- "type": "string",
74
- "description": "Target service name in the mock compose file"
78
+ "env": {
79
+ "type": "object",
80
+ "additionalProperties": {
81
+ "type": "string"
82
+ }
75
83
  },
76
- "port": {
77
- "type": [
78
- "number",
79
- "string"
80
- ],
81
- "description": "Host port to map to this dependency locally"
84
+ "endpoints": {
85
+ "type": "object",
86
+ "additionalProperties": {
87
+ "type": "object",
88
+ "properties": {
89
+ "port": {
90
+ "type": "integer",
91
+ "minimum": 1,
92
+ "maximum": 65535
93
+ },
94
+ "publicPort": {
95
+ "anyOf": [
96
+ {
97
+ "type": "integer",
98
+ "minimum": 1,
99
+ "maximum": 65535
100
+ },
101
+ {
102
+ "type": "string",
103
+ "const": "AUTO"
104
+ }
105
+ ]
106
+ },
107
+ "primary": {
108
+ "type": "boolean"
109
+ },
110
+ "scheme": {
111
+ "type": "string",
112
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
113
+ },
114
+ "service": {
115
+ "type": "string",
116
+ "minLength": 1
117
+ }
118
+ },
119
+ "required": [
120
+ "port",
121
+ "service"
122
+ ],
123
+ "additionalProperties": false
124
+ },
125
+ "propertyNames": {
126
+ "pattern": "^[a-z][a-z0-9-]*$"
127
+ }
82
128
  },
83
- "ports": {
129
+ "dependsOn": {
84
130
  "type": "array",
85
131
  "items": {
86
- "type": "string",
87
- "pattern": "^([1-9]\\d{0,4}):([1-9]\\d{0,4})$"
88
- },
89
- "description": "Additional explicit HOST_PORT:CONTAINER_PORT mappings for local dependency tooling"
132
+ "type": "string"
133
+ }
90
134
  }
91
135
  },
92
136
  "required": [
93
- "path"
137
+ "compose"
94
138
  ],
95
- "additionalProperties": false,
96
- "description": "Service dependency specification"
139
+ "additionalProperties": false
97
140
  },
98
- "description": "Service dependencies and mocks"
141
+ "propertyNames": {
142
+ "pattern": "^[a-z][a-z0-9-]*$"
143
+ }
99
144
  },
100
- "envOverrides": {
145
+ "tester": {
101
146
  "type": "object",
102
- "additionalProperties": {
103
- "type": "string"
147
+ "properties": {
148
+ "env": {
149
+ "type": "object",
150
+ "additionalProperties": {
151
+ "type": "string"
152
+ }
153
+ }
104
154
  },
105
- "description": "Environment variable overrides for the app service with URL templating"
155
+ "additionalProperties": false
106
156
  },
107
- "overrides": {
157
+ "dev": {
108
158
  "type": "object",
109
- "additionalProperties": {
110
- "type": "object",
111
- "properties": {
112
- "path": {
113
- "type": "string",
114
- "description": "Relative path to the environment stage override file"
115
- }
159
+ "properties": {
160
+ "override-compose": {
161
+ "type": "string",
162
+ "minLength": 1
116
163
  },
117
- "required": [
118
- "path"
119
- ],
120
- "additionalProperties": false,
121
- "description": "Environment override specification"
164
+ "app": {
165
+ "type": "object",
166
+ "properties": {
167
+ "env": {
168
+ "type": "object",
169
+ "additionalProperties": {
170
+ "type": "string"
171
+ }
172
+ },
173
+ "endpoints": {
174
+ "type": "object",
175
+ "additionalProperties": {
176
+ "type": "object",
177
+ "properties": {
178
+ "port": {
179
+ "type": "integer",
180
+ "minimum": 1,
181
+ "maximum": 65535
182
+ },
183
+ "publicPort": {
184
+ "anyOf": [
185
+ {
186
+ "type": "integer",
187
+ "minimum": 1,
188
+ "maximum": 65535
189
+ },
190
+ {
191
+ "type": "string",
192
+ "const": "AUTO"
193
+ }
194
+ ]
195
+ },
196
+ "primary": {
197
+ "type": "boolean"
198
+ },
199
+ "scheme": {
200
+ "type": "string",
201
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
202
+ }
203
+ },
204
+ "additionalProperties": false
205
+ },
206
+ "propertyNames": {
207
+ "pattern": "^[a-z][a-z0-9-]*$"
208
+ }
209
+ }
210
+ },
211
+ "additionalProperties": false
212
+ },
213
+ "dependencies": {
214
+ "type": "object",
215
+ "additionalProperties": {
216
+ "type": "object",
217
+ "properties": {
218
+ "compose": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "env": {
223
+ "type": "object",
224
+ "additionalProperties": {
225
+ "type": "string"
226
+ }
227
+ },
228
+ "endpoints": {
229
+ "type": "object",
230
+ "additionalProperties": {
231
+ "type": "object",
232
+ "properties": {
233
+ "port": {
234
+ "type": "integer",
235
+ "minimum": 1,
236
+ "maximum": 65535
237
+ },
238
+ "publicPort": {
239
+ "anyOf": [
240
+ {
241
+ "type": "integer",
242
+ "minimum": 1,
243
+ "maximum": 65535
244
+ },
245
+ {
246
+ "type": "string",
247
+ "const": "AUTO"
248
+ }
249
+ ]
250
+ },
251
+ "primary": {
252
+ "type": "boolean"
253
+ },
254
+ "scheme": {
255
+ "type": "string",
256
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
257
+ },
258
+ "service": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ }
262
+ },
263
+ "additionalProperties": false
264
+ },
265
+ "propertyNames": {
266
+ "pattern": "^[a-z][a-z0-9-]*$"
267
+ }
268
+ },
269
+ "dependsOn": {
270
+ "type": "array",
271
+ "items": {
272
+ "type": "string"
273
+ }
274
+ }
275
+ },
276
+ "additionalProperties": false
277
+ },
278
+ "propertyNames": {
279
+ "pattern": "^[a-z][a-z0-9-]*$"
280
+ }
281
+ }
122
282
  },
123
- "propertyNames": {
124
- "enum": [
125
- "dev",
126
- "prod",
127
- "test",
128
- "e2e"
129
- ]
283
+ "additionalProperties": false
284
+ },
285
+ "prod": {
286
+ "type": "object",
287
+ "properties": {
288
+ "override-compose": {
289
+ "type": "string",
290
+ "minLength": 1
291
+ },
292
+ "app": {
293
+ "type": "object",
294
+ "properties": {
295
+ "env": {
296
+ "type": "object",
297
+ "additionalProperties": {
298
+ "type": "string"
299
+ }
300
+ },
301
+ "endpoints": {
302
+ "type": "object",
303
+ "additionalProperties": {
304
+ "type": "object",
305
+ "properties": {
306
+ "port": {
307
+ "type": "integer",
308
+ "minimum": 1,
309
+ "maximum": 65535
310
+ },
311
+ "publicPort": {
312
+ "anyOf": [
313
+ {
314
+ "type": "integer",
315
+ "minimum": 1,
316
+ "maximum": 65535
317
+ },
318
+ {
319
+ "type": "string",
320
+ "const": "AUTO"
321
+ }
322
+ ]
323
+ },
324
+ "primary": {
325
+ "type": "boolean"
326
+ },
327
+ "scheme": {
328
+ "type": "string",
329
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
330
+ }
331
+ },
332
+ "additionalProperties": false
333
+ },
334
+ "propertyNames": {
335
+ "pattern": "^[a-z][a-z0-9-]*$"
336
+ }
337
+ }
338
+ },
339
+ "additionalProperties": false
340
+ },
341
+ "dependencies": {
342
+ "type": "object",
343
+ "additionalProperties": {
344
+ "type": "object",
345
+ "properties": {
346
+ "compose": {
347
+ "type": "string",
348
+ "minLength": 1
349
+ },
350
+ "env": {
351
+ "type": "object",
352
+ "additionalProperties": {
353
+ "type": "string"
354
+ }
355
+ },
356
+ "endpoints": {
357
+ "type": "object",
358
+ "additionalProperties": {
359
+ "type": "object",
360
+ "properties": {
361
+ "port": {
362
+ "type": "integer",
363
+ "minimum": 1,
364
+ "maximum": 65535
365
+ },
366
+ "publicPort": {
367
+ "anyOf": [
368
+ {
369
+ "type": "integer",
370
+ "minimum": 1,
371
+ "maximum": 65535
372
+ },
373
+ {
374
+ "type": "string",
375
+ "const": "AUTO"
376
+ }
377
+ ]
378
+ },
379
+ "primary": {
380
+ "type": "boolean"
381
+ },
382
+ "scheme": {
383
+ "type": "string",
384
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
385
+ },
386
+ "service": {
387
+ "type": "string",
388
+ "minLength": 1
389
+ }
390
+ },
391
+ "additionalProperties": false
392
+ },
393
+ "propertyNames": {
394
+ "pattern": "^[a-z][a-z0-9-]*$"
395
+ }
396
+ },
397
+ "dependsOn": {
398
+ "type": "array",
399
+ "items": {
400
+ "type": "string"
401
+ }
402
+ }
403
+ },
404
+ "additionalProperties": false
405
+ },
406
+ "propertyNames": {
407
+ "pattern": "^[a-z][a-z0-9-]*$"
408
+ }
409
+ }
130
410
  },
131
- "description": "Stage overrides (dev, prod, test, e2e)"
411
+ "additionalProperties": false
132
412
  },
133
- "services": {
413
+ "test": {
134
414
  "type": "object",
135
- "additionalProperties": {},
136
- "description": "Additional Docker Compose service overrides"
415
+ "properties": {
416
+ "override-compose": {
417
+ "type": "string",
418
+ "minLength": 1
419
+ },
420
+ "app": {
421
+ "type": "object",
422
+ "properties": {
423
+ "env": {
424
+ "type": "object",
425
+ "additionalProperties": {
426
+ "type": "string"
427
+ }
428
+ },
429
+ "endpoints": {
430
+ "type": "object",
431
+ "additionalProperties": {
432
+ "type": "object",
433
+ "properties": {
434
+ "port": {
435
+ "type": "integer",
436
+ "minimum": 1,
437
+ "maximum": 65535
438
+ },
439
+ "publicPort": {
440
+ "anyOf": [
441
+ {
442
+ "type": "integer",
443
+ "minimum": 1,
444
+ "maximum": 65535
445
+ },
446
+ {
447
+ "type": "string",
448
+ "const": "AUTO"
449
+ }
450
+ ]
451
+ },
452
+ "primary": {
453
+ "type": "boolean"
454
+ },
455
+ "scheme": {
456
+ "type": "string",
457
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
458
+ }
459
+ },
460
+ "additionalProperties": false
461
+ },
462
+ "propertyNames": {
463
+ "pattern": "^[a-z][a-z0-9-]*$"
464
+ }
465
+ }
466
+ },
467
+ "additionalProperties": false
468
+ },
469
+ "dependencies": {
470
+ "type": "object",
471
+ "additionalProperties": {
472
+ "type": "object",
473
+ "properties": {
474
+ "compose": {
475
+ "type": "string",
476
+ "minLength": 1
477
+ },
478
+ "env": {
479
+ "type": "object",
480
+ "additionalProperties": {
481
+ "type": "string"
482
+ }
483
+ },
484
+ "endpoints": {
485
+ "type": "object",
486
+ "additionalProperties": {
487
+ "type": "object",
488
+ "properties": {
489
+ "port": {
490
+ "type": "integer",
491
+ "minimum": 1,
492
+ "maximum": 65535
493
+ },
494
+ "publicPort": {
495
+ "anyOf": [
496
+ {
497
+ "type": "integer",
498
+ "minimum": 1,
499
+ "maximum": 65535
500
+ },
501
+ {
502
+ "type": "string",
503
+ "const": "AUTO"
504
+ }
505
+ ]
506
+ },
507
+ "primary": {
508
+ "type": "boolean"
509
+ },
510
+ "scheme": {
511
+ "type": "string",
512
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
513
+ },
514
+ "service": {
515
+ "type": "string",
516
+ "minLength": 1
517
+ }
518
+ },
519
+ "additionalProperties": false
520
+ },
521
+ "propertyNames": {
522
+ "pattern": "^[a-z][a-z0-9-]*$"
523
+ }
524
+ },
525
+ "dependsOn": {
526
+ "type": "array",
527
+ "items": {
528
+ "type": "string"
529
+ }
530
+ }
531
+ },
532
+ "additionalProperties": false
533
+ },
534
+ "propertyNames": {
535
+ "pattern": "^[a-z][a-z0-9-]*$"
536
+ }
537
+ }
538
+ },
539
+ "additionalProperties": false
137
540
  },
138
- "tester": {
541
+ "e2e": {
139
542
  "type": "object",
140
543
  "properties": {
141
- "envOverrides": {
544
+ "override-compose": {
545
+ "type": "string",
546
+ "minLength": 1
547
+ },
548
+ "app": {
549
+ "type": "object",
550
+ "properties": {
551
+ "env": {
552
+ "type": "object",
553
+ "additionalProperties": {
554
+ "type": "string"
555
+ }
556
+ },
557
+ "endpoints": {
558
+ "type": "object",
559
+ "additionalProperties": {
560
+ "type": "object",
561
+ "properties": {
562
+ "port": {
563
+ "type": "integer",
564
+ "minimum": 1,
565
+ "maximum": 65535
566
+ },
567
+ "publicPort": {
568
+ "anyOf": [
569
+ {
570
+ "type": "integer",
571
+ "minimum": 1,
572
+ "maximum": 65535
573
+ },
574
+ {
575
+ "type": "string",
576
+ "const": "AUTO"
577
+ }
578
+ ]
579
+ },
580
+ "primary": {
581
+ "type": "boolean"
582
+ },
583
+ "scheme": {
584
+ "type": "string",
585
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
586
+ }
587
+ },
588
+ "additionalProperties": false
589
+ },
590
+ "propertyNames": {
591
+ "pattern": "^[a-z][a-z0-9-]*$"
592
+ }
593
+ }
594
+ },
595
+ "additionalProperties": false
596
+ },
597
+ "dependencies": {
142
598
  "type": "object",
143
599
  "additionalProperties": {
144
- "type": "string"
600
+ "type": "object",
601
+ "properties": {
602
+ "compose": {
603
+ "type": "string",
604
+ "minLength": 1
605
+ },
606
+ "env": {
607
+ "type": "object",
608
+ "additionalProperties": {
609
+ "type": "string"
610
+ }
611
+ },
612
+ "endpoints": {
613
+ "type": "object",
614
+ "additionalProperties": {
615
+ "type": "object",
616
+ "properties": {
617
+ "port": {
618
+ "type": "integer",
619
+ "minimum": 1,
620
+ "maximum": 65535
621
+ },
622
+ "publicPort": {
623
+ "anyOf": [
624
+ {
625
+ "type": "integer",
626
+ "minimum": 1,
627
+ "maximum": 65535
628
+ },
629
+ {
630
+ "type": "string",
631
+ "const": "AUTO"
632
+ }
633
+ ]
634
+ },
635
+ "primary": {
636
+ "type": "boolean"
637
+ },
638
+ "scheme": {
639
+ "type": "string",
640
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*$"
641
+ },
642
+ "service": {
643
+ "type": "string",
644
+ "minLength": 1
645
+ }
646
+ },
647
+ "additionalProperties": false
648
+ },
649
+ "propertyNames": {
650
+ "pattern": "^[a-z][a-z0-9-]*$"
651
+ }
652
+ },
653
+ "dependsOn": {
654
+ "type": "array",
655
+ "items": {
656
+ "type": "string"
657
+ }
658
+ }
659
+ },
660
+ "additionalProperties": false
145
661
  },
146
- "description": "Environment variable overrides for the individual E2E tester with URL templating"
662
+ "propertyNames": {
663
+ "pattern": "^[a-z][a-z0-9-]*$"
664
+ }
147
665
  }
148
666
  },
149
- "additionalProperties": false,
150
- "description": "E2E tester configuration"
667
+ "additionalProperties": false
151
668
  }
152
669
  },
153
- "additionalProperties": false,
154
- "description": "Solid Stack service build and deployment configuration"
670
+ "required": [
671
+ "app"
672
+ ],
673
+ "additionalProperties": false
155
674
  }
156
675
  },
157
676
  "$schema": "http://json-schema.org/draft-07/schema#"