|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\Swagger\schemas; |
| 4 | + |
| 5 | +use OpenApi\Attributes as OA; |
| 6 | + |
| 7 | + |
| 8 | +#[OA\Schema( |
| 9 | + schema: 'PresentationCategory', |
| 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, format: "time_epoch"), |
| 14 | + new OA\Property(property: 'last_edited', type: 'integer', example: 1, format: "time_epoch"), |
| 15 | + new OA\Property(property: 'name', type: 'string'), |
| 16 | + new OA\Property(property: 'description', type: 'string'), |
| 17 | + new OA\Property(property: 'code', type: 'string'), |
| 18 | + new OA\Property(property: 'slug', type: 'string'), |
| 19 | + new OA\Property(property: 'session_count', type: 'integer'), |
| 20 | + new OA\Property(property: 'alternate_count', type: 'integer'), |
| 21 | + new OA\Property(property: 'lightning_count', type: 'integer'), |
| 22 | + new OA\Property(property: 'lightning_alternate_count', type: 'integer'), |
| 23 | + new OA\Property(property: 'voting_visible', type: 'boolean'), |
| 24 | + new OA\Property(property: 'chair_visible', type: 'boolean'), |
| 25 | + new OA\Property(property: 'summit_id', type: 'integer'), |
| 26 | + new OA\Property(property: 'color', type: 'string'), |
| 27 | + new OA\Property(property: 'text_color', type: 'string'), |
| 28 | + new OA\Property(property: 'icon_url', type: 'string'), |
| 29 | + new OA\Property(property: 'order', type: 'integer'), |
| 30 | + new OA\Property(property: 'proposed_schedule_transition_time', type: 'integer'), |
| 31 | + new OA\Property(property: 'parent_id', type: 'integer'), |
| 32 | + new OA\Property(property: 'track_groups', type: 'array', |
| 33 | + items: new OA\Items( |
| 34 | + anyOf: [ |
| 35 | + new OA\Schema(type: 'integer'), |
| 36 | + new OA\Schema(ref: '#/components/schemas/PresentationCategoryGroup') |
| 37 | + ] |
| 38 | + ), |
| 39 | + description: 'PresentationCategoryGroup full objects if expanded' |
| 40 | + ), |
| 41 | + new OA\Property(property: 'allowed_tags', type: 'array', |
| 42 | + items: new OA\Items( |
| 43 | + anyOf: [ |
| 44 | + new OA\Schema(type: 'integer'), |
| 45 | + // new OA\Schema(ref: '#/components/schemas/Tag') |
| 46 | + ] |
| 47 | + ), |
| 48 | + description: 'Tag full objects if expanded' |
| 49 | + ), |
| 50 | + new OA\Property(property: 'extra_questions', type: 'array', |
| 51 | + items: new OA\Items( |
| 52 | + anyOf: [ |
| 53 | + new OA\Schema(type: 'integer'), |
| 54 | + // new OA\Schema(ref: '#/components/schemas/TrackQuestionTemplate') |
| 55 | + ] |
| 56 | + ), |
| 57 | + description: 'TrackQuestionTemplate full objects if expanded' |
| 58 | + ), |
| 59 | + new OA\Property(property: 'selection_lists', type: 'array', items: new OA\Items(type: 'integer'),), |
| 60 | + new OA\Property(property: 'allowed_access_levels', type: 'array', items: new OA\Items(type: 'integer'), description: 'SummitAccessLevelType IDs, or full objects if expanded'), |
| 61 | + new OA\Property(property: 'proposed_schedule_allowed_locations', type: 'array', |
| 62 | + items: new OA\Items( |
| 63 | + anyOf: [ |
| 64 | + new OA\Schema(type: 'integer'), |
| 65 | + // new OA\Schema(ref: '#/components/schemas/SummitProposedScheduleAllowedLocation') |
| 66 | + ] |
| 67 | + ), |
| 68 | + description: 'SummitProposedScheduleAllowedLocation full objects if expanded' |
| 69 | + ), |
| 70 | + new OA\Property(property: 'parent', ref: '#/components/schemas/PresentationCategory', description: 'PresentationCategory full object if expanded'), |
| 71 | + new OA\Property(property: 'subtracks', type: 'array', |
| 72 | + items: new OA\Items( |
| 73 | + anyOf: [ |
| 74 | + new OA\Schema(type: 'integer'), |
| 75 | + new OA\Schema(ref: '#/components/schemas/PresentationCategory') |
| 76 | + ] |
| 77 | + ), |
| 78 | + description: 'PresentationCategory full object if expanded' |
| 79 | + ), |
| 80 | + ]) |
| 81 | +] |
| 82 | +class PresentationCategorySchema |
| 83 | +{ |
| 84 | +} |
0 commit comments