Skip to content

Commit 84bfbca

Browse files
committed
chore: add missing refs
1 parent 2a7092d commit 84bfbca

11 files changed

+251
-5
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'GuestOSType',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'type', type: 'string', example: 'KVM'),
16+
])
17+
]
18+
class GuestOSTypeSchema
19+
{
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'HyperVisorType',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'type', type: 'string', example: 'KVM'),
16+
])
17+
]
18+
class HyperVisorTypeSchema
19+
{
20+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'ProjectSponsorshipType',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'name', type: 'string', ),
16+
new OA\Property(property: 'description', type: 'string', ),
17+
new OA\Property(property: 'is_active', type: 'boolean', ),
18+
new OA\Property(property: 'order', type: 'integer', ),
19+
new OA\Property(property: 'sponsored_project_id', type: 'integer', ),
20+
new OA\Property(property: 'supporting_companies', type: 'integer', ),
21+
new OA\Property(property: 'sponsored_project', type: 'array', items: new OA\Items(ref: '#/components/schemas/SponsoredProject'), description: "SponsoredProject associated with the sponsorship type, IDs when used as relationship, object when included in expand"),
22+
new OA\Property(property: 'supporting_companies', type: 'array', items: new OA\Items(ref: '#/components/schemas/SupportingCompany'), description: "SponsoredProject associated with the sponsorship type, IDs when used as relationship, object when included in expand"),
23+
]
24+
)]
25+
class ProjectSponsorshipTypeSchema
26+
{
27+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'Region',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'name', type: 'string', example: "Central America"),
16+
])
17+
]
18+
class RegionSchema
19+
{
20+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'RegionalSupport',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(
16+
property: 'supported_channel_types',
17+
type: 'array',
18+
items: new OA\Items(ref: '#/components/schemas/SupportChannelType'),
19+
description: "List of SupportChannelType IDs, included only when 'supported_channel_types' is in relations"
20+
),
21+
new OA\Property(property: 'region', ref: '#/components/schemas/Region', description: "Included only when 'region' is in expand")
22+
])
23+
]
24+
class RegionalSupportSchema
25+
{
26+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'SponsoredProject',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'name', type: 'string'),
16+
new OA\Property(property: 'description', type: 'string'),
17+
new OA\Property(property: 'slug', type: 'string'),
18+
new OA\Property(property: 'is_active', type: 'boolean'),
19+
new OA\Property(property: 'should_show_on_nav_bar', type: 'boolean'),
20+
new OA\Property(property: 'site_url', type: 'string'),
21+
new OA\Property(property: 'logo_url', type: 'string'),
22+
new OA\Property(property: 'parent_project_id', type: 'integer', description: 'ID of the parent sponsored project, only available if not expanded'),
23+
new OA\Property(property: 'sponsorship_types', type: 'array', items: new OA\Items(ref: '#/components/schemas/ProjectSponsorshipType'), description: 'Array of ProjectSponsorshipType objects, only available if expanded'),
24+
new OA\Property(property: 'subprojects', type: 'array', items: new OA\Items(ref: '#/components/schemas/SponsoredProject'), description: 'List of SponsoredProject objects, only available if expanded'),
25+
new OA\Property(property: 'parent_project', ref: '#/components/schemas/SponsoredProject', description: 'SponsoredProject object, only available if expanded'),
26+
])
27+
]
28+
class SponsoredProjectSchema
29+
{
30+
}

app/Swagger/Models/SummitSponsorshipAddOnSchema.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
new OA\Property(property: 'id', type: 'integer', example: 1),
1313
new OA\Property(property: 'created', type: 'integer', example: 1),
1414
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15-
// @TODO: Complete properties
15+
new OA\Property(property: 'name', type: 'string', ),
16+
new OA\Property(property: 'type', type: 'string', ),
17+
new OA\Property(property: 'sponsorship_id', type: 'integer', description: 'Summit Sponsorship ID, only available when NOT expanded', ),
18+
new OA\Property(property: 'sponsorship', ref: '#/components/schemas/SummitSponsorship', description: 'Summit Sponsorship object, only available when expanded', ),
1619
])
1720
]
1821
class SummitSponsorshipAddOnSchema

app/Swagger/Models/SummitSponsorshipTypeSchema.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
new OA\Property(property: 'sponsor_page_use_live_event_widget', type: 'boolean', ),
2222
new OA\Property(property: 'sponsor_page_use_schedule_widget', type: 'boolean', ),
2323
new OA\Property(property: 'sponsor_page_use_banner_widget', type: 'boolean', ),
24-
new OA\Property(property: 'type_id', type: 'int', description: "SponsorshipType ID only available when NOT expanded"),
24+
new OA\Property(property: 'type_id', type: 'integer', description: "SponsorshipType ID only available when NOT expanded"),
2525
new OA\Property(property: 'badge_image', type: 'string', ),
2626
new OA\Property(property: 'badge_image_alt_text', type: 'string', ),
27-
new OA\Property(property: 'summit_id', type: 'int', ),
28-
new OA\Property(property: 'order', type: 'int', ),
27+
new OA\Property(property: 'summit_id', type: 'integer', ),
28+
new OA\Property(property: 'order', type: 'integer', ),
2929
new OA\Property(property: 'should_display_on_expo_hall_page', type: 'boolean', ),
3030
new OA\Property(property: 'should_display_on_lobby_page', type: 'boolean', ),
3131
new OA\Property(property: 'summit', ref: '#/components/schemas/Summit', description: "Summit object, only available when expanded"),
@@ -34,4 +34,4 @@
3434
]
3535
class SummitSponsorshipTypeSchema
3636
{
37-
}
37+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'SupportChannelType',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'type', type: 'string', example: "example_type"),
16+
])
17+
]
18+
class SupportChannelTypeSchema
19+
{
20+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace App\Swagger\schemas;
4+
5+
use OpenApi\Attributes as OA;
6+
7+
8+
#[OA\Schema(
9+
schema: 'SupportingCompany',
10+
type: 'object',
11+
properties: [
12+
new OA\Property(property: 'id', type: 'integer', example: 1),
13+
new OA\Property(property: 'created', type: 'integer', example: 1),
14+
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
15+
new OA\Property(property: 'company_id', type: 'integer', example: 1),
16+
new OA\Property(property: 'sponsorship_type_id', type: 'integer', example: 1),
17+
new OA\Property(property: 'order', type: 'integer', example: 1),
18+
new OA\Property(property: 'company', ref: '#/components/schemas/Company', description: 'Company object, only available when expanded'),
19+
new OA\Property(property: 'sponsorship_type', ref: '#/components/schemas/SponsorshipType', description: 'SponsorshipType object, only available when expanded'),
20+
21+
])
22+
]
23+
class SupportingCompanySchema
24+
{
25+
}

0 commit comments

Comments
 (0)