fix: incorrect server API patch response

This commit is contained in:
SierraJC
2024-11-23 12:17:38 +11:00
parent 4a45de5646
commit 379045c835
3 changed files with 4 additions and 10 deletions

View File

@@ -596,8 +596,7 @@ class ServersController extends Controller
new OA\MediaType(
mediaType: 'application/json',
schema: new OA\Schema(
type: 'array',
items: new OA\Items(ref: '#/components/schemas/Server')
ref: '#/components/schemas/Server'
)
),
]),

View File

@@ -1,5 +1,5 @@
{
"openapi": "3.0.0",
"openapi": "3.1.0",
"info": {
"title": "Coolify",
"version": "0.1"
@@ -5451,10 +5451,7 @@
"content": {
"application\/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#\/components\/schemas\/Server"
}
"$ref": "#\/components\/schemas\/Server"
}
}
}

View File

@@ -3713,9 +3713,7 @@ paths:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Server'
$ref: '#/components/schemas/Server'
'401':
$ref: '#/components/responses/401'
'400':