-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroupSchema.php
More file actions
27 lines (24 loc) · 823 Bytes
/
GroupSchema.php
File metadata and controls
27 lines (24 loc) · 823 Bytes
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
<?php
namespace App\Swagger\schemas;
use OpenApi\Attributes as OA;
#[OA\Schema(
schema: 'Group',
title: 'Group',
description: 'Group serialized representation',
type: 'object',
allOf: [
new OA\Schema(ref: '#/components/schemas/Base'),
new OA\Schema(
type: 'object',
properties: [
new OA\Property(property: 'name', type: 'string', description: 'Group name'),
new OA\Property(property: 'slug', type: 'string', description: 'Group slug'),
new OA\Property(property: 'active', type: 'boolean', description: 'Whether the group is active'),
new OA\Property(property: 'default', type: 'boolean', description: 'Whether the group is a default group'),
]
)
]
)]
class GroupSchema
{
}