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( new OA\Response(
response: 200, response: 200,
description: 'Get all private keys.', description: 'Get all private keys.',
content: [ content: new OA\JsonContent(ref: '#/components/schemas/PrivateKey')
new OA\MediaType( ),
mediaType: 'application/json',
schema: new OA\Schema(
type: 'array',
items: new OA\Items(ref: '#/components/schemas/PrivateKey')
)
),
]),
new OA\Response( new OA\Response(
response: 401, response: 401,
ref: '#/components/responses/401', ref: '#/components/responses/401',

View File

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