-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTrackQuestionTemplateSchema.php
More file actions
36 lines (32 loc) · 1.24 KB
/
TrackQuestionTemplateSchema.php
File metadata and controls
36 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace App\Swagger\schemas;
use OpenApi\Attributes as OA;
#[OA\Schema(
schema: 'TrackQuestionTemplate',
type: 'object',
properties: [
new OA\Property(property: 'id', type: 'integer', example: 1),
new OA\Property(property: 'created', type: 'integer', example: 1),
new OA\Property(property: 'last_edited', type: 'integer', example: 1),
new OA\Property(property: 'name', type: 'string'),
new OA\Property(property: 'label', type: 'string'),
new OA\Property(property: 'is_mandatory', type: 'boolean'),
new OA\Property(property: 'is_read_only', type: 'boolean'),
new OA\Property(property: 'after_question', type: 'string'),
new OA\Property(property: 'class_name', type: 'string'),
new OA\Property(
property: 'tracks',
type: 'array',
description: 'Array of PresentationCategory, IDs or objects when ?expand=tracks',
items: new OA\Items(
oneOf: [
new OA\Schema(type: 'integer', description: 'PresentationCategory ID'),
new OA\Schema(ref: '#/components/schemas/PresentationCategory')
]
)
),
])
]
class TrackQuestionTemplateSchema
{
}