Skip to content

Commit 7a211dc

Browse files
committed
swagger updates
1 parent 1eade7c commit 7a211dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Common/SwaggerSchemasResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
new OA\Property(
2424
property: 'message',
2525
type: 'string',
26-
example: 'Some fields invalid: email, confirmed, html_email'
26+
example: 'Some fields are invalid'
2727
)
2828
],
2929
type: 'object'

src/Identity/Controller/AdministratorController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function getAdministrators(Request $request): JsonResponse
133133
content: new OA\JsonContent(ref: '#/components/schemas/Administrator')
134134
),
135135
new OA\Response(
136-
response: 400,
136+
response: 422,
137137
description: 'Invalid input'
138138
)
139139
]
@@ -234,7 +234,8 @@ public function getAdministrator(
234234
responses: [
235235
new OA\Response(
236236
response: 200,
237-
description: 'Administrator updated successfully'
237+
description: 'Administrator updated successfully',
238+
content: new OA\JsonContent(ref: '#/components/schemas/Administrator')
238239
),
239240
new OA\Response(
240241
response: 404,

0 commit comments

Comments
 (0)