Skip to content

Commit fcb2cc0

Browse files
chore: convert endpoint to use go engine (#690)
1 parent c909899 commit fcb2cc0

File tree

5 files changed

+209
-216
lines changed

5 files changed

+209
-216
lines changed

apps/workspace-engine/oapi/openapi.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@
482482
"JsonSelector": {
483483
"properties": {
484484
"json": {
485+
"additionalProperties": true,
485486
"type": "object"
486487
}
487488
},
@@ -1214,7 +1215,7 @@
12141215
"id": {
12151216
"type": "string"
12161217
},
1217-
"links": {
1218+
"metadata": {
12181219
"additionalProperties": {
12191220
"type": "string"
12201221
},
@@ -1227,7 +1228,8 @@
12271228
"required": [
12281229
"id",
12291230
"createdAt",
1230-
"status"
1231+
"status",
1232+
"metadata"
12311233
],
12321234
"type": "object"
12331235
},
@@ -1240,6 +1242,16 @@
12401242
"type": "string"
12411243
}
12421244
},
1245+
"required": [
1246+
"id",
1247+
"resourceId",
1248+
"environmentId",
1249+
"deploymentId",
1250+
"environment",
1251+
"deployment",
1252+
"resource",
1253+
"jobs"
1254+
],
12431255
"type": "object"
12441256
},
12451257
"type": "array"

apps/workspace-engine/oapi/spec/paths/deployment-version.jsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ local openapi = import '../lib/openapi.libsonnet';
2929
type: 'array',
3030
items: {
3131
type: 'object',
32+
required: ['id', 'resourceId', 'environmentId', 'deploymentId', 'environment', 'deployment', 'resource', 'jobs'],
3233
properties: {
3334
// ReleaseTarget fields (flattened)
3435
id: { type: 'string' },
@@ -44,13 +45,13 @@ local openapi = import '../lib/openapi.libsonnet';
4445
type: 'array',
4546
items: {
4647
type: 'object',
47-
required: ['id', 'createdAt', 'status'],
48+
required: ['id', 'createdAt', 'status', 'metadata'],
4849
properties: {
4950
id: { type: 'string' },
5051
createdAt: { type: 'string', format: 'date-time' },
5152
status: openapi.schemaRef('JobStatus'),
5253
externalId: { type: 'string' },
53-
links: {
54+
metadata: {
5455
type: 'object',
5556
additionalProperties: { type: 'string' },
5657
},

apps/workspace-engine/oapi/spec/schemas/core.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local openapi = import '../lib/openapi.libsonnet';
66
type: 'object',
77
required: ['json'],
88
properties: {
9-
json: { type: 'object' },
9+
json: { type: 'object', additionalProperties: true },
1010
},
1111
},
1212

0 commit comments

Comments
 (0)