fix: update schema in code decorator

This commit is contained in:
Marcon Neves
2024-11-03 14:03:59 -03:00
committed by GitHub
parent f2656e4ff2
commit 4a6df8b6f9

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',