Skip to content

Commit 9dc5c5e

Browse files
committed
feat: change to ref the custom types
1 parent 5e30e60 commit 9dc5c5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Swagger/CompaniesSchemas.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
new OA\Property(
4747
property: "sponsorships",
4848
type: "array",
49-
items: new OA\Items(type: "SummitSponsorship"),
49+
items: new OA\Items(ref: "#/components/schemas/SummitSponsorship"),
5050
description: "Array of SummitSponsorship models (only when expand=sponsorships)",
5151
),
5252
new OA\Property(
@@ -59,7 +59,7 @@
5959
new OA\Property(
6060
property: "project_sponsorships",
6161
type: "array",
62-
items: new OA\Items(type: "ProjectSponsorshipType"),
62+
items: new OA\Items(ref: "#/components/schemas/ProjectSponsorshipType"),
6363
description: "Array of project ProjectSponsorshipType models (only when expand=project_sponsorships)",
6464
),
6565
],

0 commit comments

Comments
 (0)