From aeef97f295d42df368dbc66950b226291b7971a9 Mon Sep 17 00:00:00 2001 From: Yassir <53705290+YaRissi@users.noreply.github.com> Date: Tue, 6 Jan 2026 12:52:32 +0100 Subject: [PATCH] fix(docs): api docs for bulk env update response (#7714) --- app/Http/Controllers/Api/ApplicationsController.php | 6 ++---- openapi.json | 11 ++++------- openapi.yaml | 6 +++--- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/app/Http/Controllers/Api/ApplicationsController.php b/app/Http/Controllers/Api/ApplicationsController.php index 3b6f67b1f..06f16e715 100644 --- a/app/Http/Controllers/Api/ApplicationsController.php +++ b/app/Http/Controllers/Api/ApplicationsController.php @@ -2696,10 +2696,8 @@ public function update_env_by_uuid(Request $request) 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 571720d40..b7ad90111 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 896b97b9e..137b01c00 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':