Skip to content

Commit

Permalink
add id to env openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Nov 20, 2024
1 parent d2d208b commit 8b6fddc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/webservice/src/app/api/v1/environments/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export const openapi: Swagger.SwaggerV3 = {
environment: {
type: "object",
properties: {
id: {
type: "string",
},
systemId: {
type: "string",
},
Expand All @@ -69,6 +72,7 @@ export const openapi: Swagger.SwaggerV3 = {
},
description: {
type: "string",
nullable: true,
},
expiresAt: {
type: "string",
Expand All @@ -80,7 +84,7 @@ export const openapi: Swagger.SwaggerV3 = {
additionalProperties: true,
},
},
required: ["systemId"],
required: ["id", "systemId"],
},
},
},
Expand Down
7 changes: 6 additions & 1 deletion openapi.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@
"environment": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"systemId": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
"type": "string",
"nullable": true
},
"expiresAt": {
"type": "string",
Expand All @@ -82,6 +86,7 @@
}
},
"required": [
"id",
"systemId"
]
}
Expand Down

0 comments on commit 8b6fddc

Please sign in to comment.