Skip to content

Commit 5ac01ac

Browse files
committed
fix(openapi): address review on root attributes
Drop `in` from the AuthToken scheme. Order the OA\OpenApi arguments as the constructor declares them, and add trailing commas. Signed-off-by: Mike Qi <dq042000@gmail.com>
1 parent e7f84c2 commit 5ac01ac

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎src/App/src/OpenAPI.php‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,26 @@
1414
servers: [
1515
new OA\Server(url: 'http://api.dotkernel.localhost', description: 'Local development server'),
1616
],
17+
externalDocs: new OA\ExternalDocumentation(
18+
description: 'Dotkernel API documentation',
19+
url: 'https://docs.dotkernel.org/api-documentation/',
20+
),
1721
components: new OA\Components(
1822
securitySchemes: [
1923
new OA\SecurityScheme(
2024
securityScheme: 'AuthToken',
2125
type: 'http',
22-
in: 'header',
2326
bearerFormat: 'JWT',
24-
scheme: 'bearer'
27+
scheme: 'bearer',
2528
),
2629
new OA\SecurityScheme(
2730
securityScheme: 'ErrorReportingToken',
2831
type: 'apiKey',
2932
name: 'Error-Reporting-Token',
30-
in: 'header'
33+
in: 'header',
3134
),
3235
],
3336
),
34-
externalDocs: new OA\ExternalDocumentation(
35-
description: 'Dotkernel API documentation',
36-
url: 'https://docs.dotkernel.org/api-documentation/'
37-
),
3837
)]
3938

4039
/**

0 commit comments

Comments
 (0)