Merge pull request #4119 from marconneves/next

Update schema of private keys by id response
This commit is contained in:
Andras Bacsai
2024-11-12 10:25:43 +01:00
committed by GitHub
2 changed files with 3 additions and 12 deletions

View File

@@ -81,15 +81,8 @@ class SecurityController extends Controller
new OA\Response(
response: 200,
description: 'Get all private keys.',
content: [
new OA\MediaType(
mediaType: 'application/json',
schema: new OA\Schema(
type: 'array',
items: new OA\Items(ref: '#/components/schemas/PrivateKey')
)
),
]),
content: new OA\JsonContent(ref: '#/components/schemas/PrivateKey')
),
new OA\Response(
response: 401,
ref: '#/components/responses/401',

View File

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