|
1 | 1 | <?php |
2 | 2 |
|
3 | | -namespace App\Swagger\schemas; |
| 3 | +namespace App\Swagger\Models; |
4 | 4 |
|
5 | 5 | use OpenApi\Attributes as OA; |
6 | 6 |
|
7 | | - |
| 7 | +/** |
| 8 | + * Schema for SummitAbstractLocation model |
| 9 | + * Base schema for all location types |
| 10 | + */ |
8 | 11 | #[OA\Schema( |
9 | 12 | schema: 'SummitAbstractLocation', |
10 | 13 | type: 'object', |
| 14 | + description: 'Base location object for summits', |
11 | 15 | 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: 'short_name', type: 'string'), |
17 | | - new OA\Property(property: 'description', type: 'string'), |
18 | | - new OA\Property(property: 'location_type', type: 'string'), |
19 | | - new OA\Property(property: 'order', type: 'integer'), |
20 | | - new OA\Property(property: 'opening_hour', type: 'integer'), |
21 | | - new OA\Property(property: 'closing_hour', type: 'integer'), |
22 | | - new OA\Property(property: 'class_name', type: 'string'), |
23 | | - new OA\Property(property: 'published_events', type: 'array', items: new OA\Items(type: 'integer'), description: 'Array of published event IDs'), |
| 16 | + new OA\Property(property: 'id', type: 'integer', description: 'Unique identifier'), |
| 17 | + new OA\Property(property: 'created', type: 'integer', description: 'Creation timestamp (epoch)'), |
| 18 | + new OA\Property(property: 'last_edited', type: 'integer', description: 'Last modification timestamp (epoch)'), |
| 19 | + new OA\Property(property: 'name', type: 'string', description: 'Location name'), |
| 20 | + new OA\Property(property: 'short_name', type: 'string', description: 'Short name for the location'), |
| 21 | + new OA\Property(property: 'description', type: 'string', description: 'Location description'), |
| 22 | + new OA\Property(property: 'location_type', type: 'string', description: 'Type of location'), |
| 23 | + new OA\Property(property: 'order', type: 'integer', description: 'Display order'), |
| 24 | + new OA\Property(property: 'opening_hour', type: 'integer', description: 'Opening hour (0-23)'), |
| 25 | + new OA\Property(property: 'closing_hour', type: 'integer', description: 'Closing hour (0-23)'), |
| 26 | + new OA\Property(property: 'class_name', type: 'string', description: 'Class name identifier'), |
| 27 | + new OA\Property( |
| 28 | + property: 'published_events', |
| 29 | + type: 'array', |
| 30 | + items: new OA\Items(type: 'integer'), |
| 31 | + description: 'Array of published event IDs at this location' |
| 32 | + ), |
24 | 33 | ] |
25 | 34 | )] |
26 | | -class SummitAbstractLocationSchema |
27 | | -{ |
28 | | -} |
| 35 | +class SummitAbstractLocationSchema {} |
0 commit comments