|
26 | 26 | new OA\Property(property: 'openstack_tested_info', type: 'string', example: 'Tested with OpenStack Yoga'), |
27 | 27 | new OA\Property(property: 'company_id', type: 'integer', example: 41, description: 'ID of the company that provides this appliance, visible only when is not expanded'), |
28 | 28 | new OA\Property(property: 'company', ref: '#/components/schemas/Company', description: 'Company that provides this appliance, visible only when expanded'), |
29 | | - new OA\Property(property: 'type_id', type: 'integer', example: 13, description: 'ID of the type of this appliance, visible only when not expanded'), |
30 | | - new OA\Property(property: 'type', ref: '#/components/schemas/MarketPlaceType', description: 'Type of this appliance, visible only when expanded'), |
31 | | - new OA\Property(property: 'types', type: 'array', items: new OA\Items(ref: '#/components/schemas/MarketPlaceType'), description: 'Regional support of this appliance, visible only when requested as relation'), |
| 29 | + new OA\Property(property: 'type_id', type: 'integer', example: 13, description: 'ID of the MarketPlaceType of this appliance, visible only when not expanded'), |
32 | 30 | new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(ref: '#/components/schemas/MarketPlaceReview', title: 'MarketPlaceReview'), description: 'Reviews of this appliance, visible only when expanded'), |
33 | 31 | new OA\Property(property: 'capabilities', type: 'array', items: new OA\Items(ref: '#/components/schemas/OpenStackImplementationApiCoverage'), description: 'Capabilities of this appliance, visible only when requested as relation'), |
34 | 32 | new OA\Property(property: 'hypervisors', type: 'array', items: new OA\Items(ref: '#/components/schemas/HyperVisorType'), description: 'Hypervisors of this appliance, visible only when requested as relation'), |
35 | 33 | new OA\Property(property: 'guests', type: 'array', items: new OA\Items(ref: '#/components/schemas/GuestOSType'), description: 'GuestOSType of this appliance, visible only when requested as relation'), |
36 | 34 | new OA\Property(property: 'supported_regions', type: 'array', items: new OA\Items(ref: '#/components/schemas/RegionalSupport'), description: 'Regional support of this appliance, visible only when requested as relation'), |
| 35 | + // @TODO: Investigate how to reference properly, as it is present in ApplianceSerializer, but does not to have a serializer asociated |
| 36 | + // new OA\Property(property: 'type', ref: '#/components/schemas/MarketPlaceType', description: 'MarketPlaceType of this appliance, visible only when expanded'), |
37 | 37 | ], |
38 | 38 | )] |
39 | 39 | class ApplianceSchema |
|
0 commit comments