Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(docs): api docs for bulk env update response (#7714)

Yassiraeef97f295d4
diff --git a/app/Http/Controllers/Api/ApplicationsController.php b/app/Http/Controllers/Api/ApplicationsController.php
index 3b6f67b1fd..06f16e715b 100644
--- a/app/Http/Controllers/Api/ApplicationsController.php
+++ b/app/Http/Controllers/Api/ApplicationsController.php
@@ -2696,10 +2696,8 @@ class ApplicationsController extends Controller
new OA\MediaType(
mediaType: 'application/json',
schema: new OA\Schema(
- type: 'object',
- properties: [
- 'message' => ['type' => 'string', 'example' => 'Environment variables updated.'],
- ]
+ type: 'array',
+ items: new OA\Items(ref: '#/components/schemas/EnvironmentVariable')
)
),
]
diff --git a/openapi.json b/openapi.json
index 571720d405..b7ad901118 100644
--- a/openapi.json
+++ b/openapi.json
@@ -3009,13 +3009,10 @@
"content": {
"application\/json": {
"schema": {
- "properties": {
- "message": {
- "type": "string",
- "example": "Environment variables updated."
- }
- },
- "type": "object"
+ "type": "array",
+ "items": {
+ "$ref": "#\/components\/schemas\/EnvironmentVariable"
+ }
}
}
}
diff --git a/openapi.yaml b/openapi.yaml
index 896b97b9e0..137b01c00e 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1915,9 +1915,9 @@ paths:
content:
application/json:
schema:
- properties:
- message: { type: string, example: 'Environment variables updated.' }
- type: object
+ type: array
+ items:
+ $ref: '#/components/schemas/EnvironmentVariable'
'401':
$ref: '#/components/responses/401'
'400':