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
commit 7952dae52d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 12 deletions

View file

@ -81,15 +81,8 @@ public function keys(Request $request)
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':