Skip to content

Commit

Permalink
fix: release metadata in the v1/openapi.ts (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk authored Dec 29, 2024
1 parent fdc4c53 commit 141f048
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
1 change: 1 addition & 0 deletions apps/webservice/src/app/api/v1/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const openapi: Swagger.SwaggerV3 = {
config: { type: "object", additionalProperties: true },
deploymentId: { type: "string", format: "uuid" },
createdAt: { type: "string", format: "date-time" },
metadata: { type: "object", additionalProperties: true },
},
required: [
"id",
Expand Down
8 changes: 2 additions & 6 deletions apps/webservice/src/app/api/v1/releases/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export const openapi: Swagger.SwaggerV3 = {
name: { type: "string" },
config: { type: "object", additionalProperties: true },
metadata: {
type: "object",
additionalProperties: { type: "string" },
$ref: "#/components/schemas/Release/properties/metadata",
},
},
required: ["version", "deploymentId"],
Expand All @@ -44,10 +43,7 @@ export const openapi: Swagger.SwaggerV3 = {
id: { type: "string" },
version: { type: "string" },
metadata: {
type: "object",
additionalProperties: {
type: "string",
},
$ref: "#/components/schemas/Release/properties/metadata",
},
},
},
Expand Down
1 change: 1 addition & 0 deletions integrations/github-get-job-inputs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async function run() {
setOutputAndLog("release_id", release?.id);
setOutputAndLog("release_version", release?.version);
setOutputsRecursively("release_config", release?.config);
setOutputsRecursively("release_metadata", release?.metadata);

if (approval?.approver != null) {
setOutputAndLog("approval_approver_id", approval.approver.id);
Expand Down
14 changes: 6 additions & 8 deletions openapi.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,10 +1341,7 @@
"additionalProperties": true
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/components/schemas/Release/properties/metadata"
}
},
"required": [
Expand All @@ -1370,10 +1367,7 @@
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/components/schemas/Release/properties/metadata"
}
}
}
Expand Down Expand Up @@ -2356,6 +2350,10 @@
"createdAt": {
"type": "string",
"format": "date-time"
},
"metadata": {
"type": "object",
"additionalProperties": true
}
},
"required": [
Expand Down
11 changes: 5 additions & 6 deletions packages/node-sdk/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ export interface components {
deploymentId: string;
/** Format: date-time */
createdAt: string;
metadata?: {
[key: string]: unknown;
};
};
Environment: {
/** Format: uuid */
Expand Down Expand Up @@ -1249,9 +1252,7 @@ export interface operations {
config?: {
[key: string]: unknown;
};
metadata?: {
[key: string]: string;
};
metadata?: components["schemas"]["Release"]["metadata"];
};
};
};
Expand All @@ -1265,9 +1266,7 @@ export interface operations {
"application/json": {
id?: string;
version?: string;
metadata?: {
[key: string]: string;
};
metadata?: components["schemas"]["Release"]["metadata"];
};
};
};
Expand Down

0 comments on commit 141f048

Please sign in to comment.