|
4 | 4 |
|
5 | 5 | use OpenApi\Attributes as OA; |
6 | 6 |
|
7 | | -// |
| 7 | +#[OA\Schema( |
| 8 | + schema: 'SpeakerActiveInvolvement', |
| 9 | + type: 'object', |
| 10 | + properties: [ |
| 11 | + new OA\Property(property: 'id', type: 'integer', example: 1), |
| 12 | + new OA\Property(property: 'created', type: 'integer', format: 'int64', example: 1633024800), |
| 13 | + new OA\Property(property: 'last_edited', type: 'integer', format: 'int64', example: 1633024800), |
| 14 | + new OA\Property(property: 'involvement', type: 'string', example: 'Active Contributor'), |
| 15 | + new OA\Property(property: 'is_default', type: 'boolean', example: true), |
| 16 | + ] |
| 17 | +)] |
| 18 | +class SpeakerActiveInvolvementSchema {} |
| 19 | + |
| 20 | +#[OA\Schema( |
| 21 | + schema: 'SpeakerActiveInvolvementsResponse', |
| 22 | + type: 'object', |
| 23 | + properties: [ |
| 24 | + new OA\Property(property: 'total', type: 'integer', example: 5), |
| 25 | + new OA\Property(property: 'per_page', type: 'integer', example: 5), |
| 26 | + new OA\Property(property: 'current_page', type: 'integer', example: 1), |
| 27 | + new OA\Property(property: 'last_page', type: 'integer', example: 1), |
| 28 | + new OA\Property( |
| 29 | + property: 'data', |
| 30 | + type: 'array', |
| 31 | + items: new OA\Items(ref: '#/components/schemas/SpeakerActiveInvolvement') |
| 32 | + ), |
| 33 | + ] |
| 34 | +)] |
| 35 | +class SpeakerActiveInvolvementsResponseSchema {} |
0 commit comments