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

This commit is contained in:
Yassir 2026-01-06 12:52:32 +01:00 committed by GitHub
parent 8e002e0558
commit aeef97f295
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 14 deletions

View file

@ -2696,10 +2696,8 @@ public function update_env_by_uuid(Request $request)
new OA\MediaType( new OA\MediaType(
mediaType: 'application/json', mediaType: 'application/json',
schema: new OA\Schema( schema: new OA\Schema(
type: 'object', type: 'array',
properties: [ items: new OA\Items(ref: '#/components/schemas/EnvironmentVariable')
'message' => ['type' => 'string', 'example' => 'Environment variables updated.'],
]
) )
), ),
] ]

View file

@ -3009,13 +3009,10 @@
"content": { "content": {
"application\/json": { "application\/json": {
"schema": { "schema": {
"properties": { "type": "array",
"message": { "items": {
"type": "string", "$ref": "#\/components\/schemas\/EnvironmentVariable"
"example": "Environment variables updated." }
}
},
"type": "object"
} }
} }
} }

View file

@ -1915,9 +1915,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
properties: type: array
message: { type: string, example: 'Environment variables updated.' } items:
type: object $ref: '#/components/schemas/EnvironmentVariable'
'401': '401':
$ref: '#/components/responses/401' $ref: '#/components/responses/401'
'400': '400':