Skip to content

Commit a99a175

Browse files
fix: respect OpenAPI 3.0
- moves anyOf to not be in the required, and properties there should be in the main properties param.
1 parent ea7a055 commit a99a175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/Swagger/SummitPresentationSchemas.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#[OA\Schema(
88
schema: "SummitSelectedPresentationList",
9+
required: ["id", "created", "last_edited", "name", "type", "hash", "selected_presentations", "interested_presentations"],
910
properties: [
1011
new OA\Property(property: "id", type: "integer", example: 1),
1112
new OA\Property(property: "created", type: "integer", description: "Unix timestamp", example: 1640995200),
@@ -15,8 +16,6 @@
1516
new OA\Property(property: "hash", type: "string", example: "abc123def456"),
1617
new OA\Property(property: "selected_presentations", type: "array", items: new OA\Items(type: "integer"), description: "Array of selected presentation IDs"),
1718
new OA\Property(property: "interested_presentations", type: "array", items: new OA\Items(type: "integer"), description: "Array of interested presentation IDs (only for Individual lists)", nullable: true),
18-
],
19-
anyOf: [
2019
new OA\Property(property: "category_id", type: "integer", example: 5),
2120
new OA\Property(property: "category", ref: "#/components/schemas/PresentationCategory"),
2221
new OA\Property(property: "owner_id", type: "integer", example: 10),

0 commit comments

Comments
 (0)