Skip to content

Commit 03a88c0

Browse files
committed
fix: security schema names and missing info section
1 parent 76dad6a commit 03a88c0

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

app/Swagger/Models/SummitSchema.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
new OA\Property(property: 'payment_profiles', type: 'array', items: new OA\Items(type: "object"), description: 'Array of PaymentGatewayProfile, when included in ?relations=payment_profiles.' ),
9090
new OA\Property(property: 'email_flows_events', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=email_flows_events.' ),
9191
new OA\Property(property: 'summit_documents', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=summit_documents.' ),
92-
new OA\Property(property: 'dates_with_events', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=dates_with_events.' ),
9392
new OA\Property(property: 'presentation_action_types', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=presentation_action_types.' ),
9493
new OA\Property(property: 'schedule_settings', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=schedule_settings.' ),
9594
new OA\Property(property: 'badge_view_types', type: 'array', items: new OA\Items(type: "integer"), description: 'Array of Ids, when included in ?relations=badge_view_types.' ),
File renamed without changes.

app/Swagger/Security/SummitAuthSchema.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
22

3-
namespace App\Swagger\Schemas;
3+
namespace App\Swagger\schemas;
44

55
use OpenApi\Attributes as OA;
66
use App\Security\SummitScopes;
77

8-
#[OA\SecurityScheme(
8+
#[
9+
OA\Info(version: "1.0.0", description: "Summit API", title: "Summit API Documentation"),
10+
OA\Server(url: L5_SWAGGER_CONST_HOST, description: "server"),
11+
OA\SecurityScheme(
912
type: 'oauth2',
1013
securityScheme: 'summit_oauth2',
1114
flows: [

app/Swagger/Security/SummitBookableRoomsAttributeTypeSecurity.php renamed to app/Swagger/Security/SummitBookableRoomsAttributeTypeAuthSchema.php

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)