Skip to content

Commit 297c2b6

Browse files
committed
Use proper example on Open API documentation
1 parent ace5bf9 commit 297c2b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Controller/v1/Localization/TimeZoneController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ public function __construct(
7676
],
7777
type: 'object'
7878
),
79-
example: ['en', 'fi']
79+
example: [
80+
'timezone' => 'Europe',
81+
'identifier' => 'Europe/Helsinki',
82+
'offset' => 'GMT+2:00',
83+
'value' => 'Europe/Helsinki',
84+
],
8085
),
8186
)]
8287
public function __invoke(): JsonResponse

0 commit comments

Comments
 (0)