|
4 | 4 |
|
5 | 5 | use OpenApi\Attributes as OA; |
6 | 6 |
|
7 | | -#[OA\Schema( |
8 | | - schema: 'Company', |
9 | | - type: 'object', |
10 | | - description: 'Base company information (public view)', |
11 | | - properties: [ |
12 | | - new OA\Property(property: 'id', type: 'integer'), |
13 | | - new OA\Property(property: 'created', type: 'integer'), |
14 | | - new OA\Property(property: 'last_edited', type: 'integer'), |
15 | | - new OA\Property(property: 'name', type: 'string'), |
16 | | - new OA\Property(property: 'url', type: 'string', format: 'url', nullable: true), |
17 | | - new OA\Property(property: 'url_segment', type: 'string', nullable: true), |
18 | | - new OA\Property(property: 'city', type: 'string', nullable: true), |
19 | | - new OA\Property(property: 'state', type: 'string', nullable: true), |
20 | | - new OA\Property(property: 'country', type: 'string', nullable: true), |
21 | | - new OA\Property(property: 'description', type: 'string', nullable: true), |
22 | | - new OA\Property(property: 'industry', type: 'string', nullable: true), |
23 | | - new OA\Property(property: 'contributions', type: 'string', nullable: true), |
24 | | - new OA\Property(property: 'member_level', type: 'string', nullable: true), |
25 | | - new OA\Property(property: 'overview', type: 'string', nullable: true), |
26 | | - new OA\Property(property: 'products', type: 'string', nullable: true), |
27 | | - new OA\Property(property: 'commitment', type: 'string', nullable: true), |
28 | | - new OA\Property(property: 'commitment_author', type: 'string', nullable: true), |
29 | | - new OA\Property(property: 'logo', type: 'string', format: 'url', nullable: true), |
30 | | - new OA\Property(property: 'big_logo', type: 'string', format: 'url', nullable: true), |
31 | | - new OA\Property(property: 'color', type: 'string', description: 'Hex color code', nullable: true), |
32 | | - ] |
33 | | -)] |
34 | | -class CompanySchema {} |
35 | | - |
36 | 7 | #[OA\Schema( |
37 | 8 | schema: 'PaginatedCompaniesResponse', |
38 | 9 | type: 'object', |
|
0 commit comments