Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 0 additions & 98 deletions app/Swagger/SummitSchemas.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,104 +292,6 @@ class SummitDocumentCreateRequest {}
)]
class SummitDocumentUpdateRequest {}

// Summit Documents

#[OA\Schema(
schema: "SummitDocument",
description: "Summit document",
type: "object",
properties: [
new OA\Property(property: "id", type: "integer", example: 1),
new OA\Property(property: "created", type: "integer", description: "Unix timestamp", example: 1640995200),
new OA\Property(property: "last_edited", type: "integer", description: "Unix timestamp", example: 1640995200),
new OA\Property(property: "name", type: "string", example: "Code of Conduct"),
new OA\Property(property: "description", type: "string", example: "Summit code of conduct document"),
new OA\Property(property: "show_always", type: "boolean", example: true),
new OA\Property(property: "label", type: "string", example: "Code of Conduct"),
new OA\Property(property: "file", type: "string", format: "uri", nullable: true, example: "https://example.com/document.pdf"),
new OA\Property(property: "web_link", type: "string", format: "uri", nullable: true, example: "https://example.com/page"),
new OA\Property(property: "selection_plan_id", type: "integer", nullable: true, description: "SelectionPlan ID, full object description when ?expand=summit (summit)"),
new OA\Property(
property: "event_types",
type: "array",
items: new OA\Items(type: "integer"),
description: "Array of SummitEventType: objects when expanded, ids otherwise",
),
new OA\Property(property: "summit_id", type: "integer", description: "Summit ID, full object description when ?expand=summit (summit)"),
]
)]
class SummitDocumentSchema {}

#[OA\Schema(
schema: "PaginatedSummitDocumentsResponse",
description: "Paginated list of summit documents",
allOf: [
new OA\Schema(ref: "#/components/schemas/PaginateDataSchemaResponse"),
new OA\Schema(
properties: [
new OA\Property(
property: "data",
type: "array",
items: new OA\Items(ref: "#/components/schemas/SummitDocument")
)
]
)
]
)]
class PaginatedSummitDocumentsResponseSchema {}

#[OA\Schema(
schema: "SummitDocumentCreateRequest",
description: "Request to create a summit document",
required: ["name", "label"],
type: "object",
properties: [
new OA\Property(property: "name", type: "string", example: "Code of Conduct"),
new OA\Property(property: "label", type: "string", example: "Code of Conduct"),
new OA\Property(property: "description", type: "string", nullable: true, example: "Summit code of conduct document"),
new OA\Property(property: "show_always", type: "boolean", nullable: true, example: true),
new OA\Property(property: "web_link", type: "string", format: "uri", nullable: true, example: "https://example.com/page"),
new OA\Property(property: "selection_plan_id", type: "integer", nullable: true, example: 1),
new OA\Property(
property: "event_types",
type: "array",
nullable: true,
items: new OA\Items(type: "integer"),
example: [1, 2, 3]
),
new OA\Property(
property: "file",
type: "string",
format: "binary",
nullable: true,
description: "Document file upload (required if web_link not provided)"
),
]
)]
class SummitDocumentCreateRequest {}

#[OA\Schema(
schema: "SummitDocumentUpdateRequest",
description: "Request to update a summit document",
type: "object",
properties: [
new OA\Property(property: "name", type: "string", nullable: true, example: "Code of Conduct"),
new OA\Property(property: "label", type: "string", nullable: true, example: "Code of Conduct"),
new OA\Property(property: "description", type: "string", nullable: true, example: "Summit code of conduct document"),
new OA\Property(property: "show_always", type: "boolean", nullable: true, example: true),
new OA\Property(property: "web_link", type: "string", format: "uri", nullable: true, example: "https://example.com/page"),
new OA\Property(property: "selection_plan_id", type: "integer", nullable: true, example: 1),
new OA\Property(
property: "event_types",
type: "array",
nullable: true,
items: new OA\Items(type: "integer"),
example: [1, 2, 3]
),
]
)]
class SummitDocumentUpdateRequest {}

// Summit Attendee Badges

#[OA\Schema(
Expand Down