Skip to content

Commit 31a707f

Browse files
chore: Add Basic schema which will be referenced by all the other Models schemas
Signed-off-by: matiasperrone-exo <matias.perrone@exomindset.co>
1 parent 3e08183 commit 31a707f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

app/Swagger/GenericSchemas.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,18 @@ class BearerAuthSchema
2828
)]
2929
class PaginateDataSchemaResponseSchema
3030
{
31+
}
32+
33+
#[OA\Schema(
34+
schema: 'BaseSerializerSchema',
35+
type: 'object',
36+
properties: [
37+
new OA\Property(property: 'id', type: 'integer', description: 'Unique identifier', example: 1),
38+
new OA\Property(property: 'created_at', type: 'integer', description: 'Creation timestamp (epoch)', example: 1609459200),
39+
new OA\Property(property: 'updated_at', type: 'integer', description: 'Last update timestamp (epoch)', example: 1609459200),
40+
],
41+
description: 'Base serializer fields'
42+
)]
43+
class BaseSerializerSchema
44+
{
3145
}

0 commit comments

Comments
 (0)