Skip to content

Commit 30526a7

Browse files
chore: Add to RemoteCloudsResponse schema the anyOf fields of company, type, and reviews
1 parent ed678e8 commit 30526a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/Swagger/MarketplaceSchemas.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
'overview' => new OA\Property(property: 'overview', type: 'string', example: 'Remotely managed private OpenStack cloud'),
1717
'call_2_action_url' => new OA\Property(property: 'call_2_action_url', type: 'string', example: 'https://example.com/managed-cloud'),
1818
'slug' => new OA\Property(property: 'slug', type: 'string', example: 'managed-openstack-service'),
19-
'company_id' => new OA\Property(property: 'company_id', type: 'integer', example: 1),
20-
'type_id' => new OA\Property(property: 'type_id', type: 'integer', example: 1),
2119
'is_compatible_with_storage' => new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', example: true),
2220
'is_compatible_with_compute' => new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', example: true),
2321
'is_compatible_with_federated_identity' => new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', example: true),
@@ -29,6 +27,13 @@
2927
'pricing_models' => new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'),
3028
'published_sla' => new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'),
3129
'is_vendor_managed_upgrades' => new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true)
30+
],
31+
anyOf: [
32+
'company_id' => new OA\Property(property: 'company_id', type: 'integer', example: 1),
33+
'company' => new OA\Property(property: 'company', type: 'Company'),
34+
'type_id' => new OA\Property(property: 'type_id', type: 'integer'),
35+
'type' => new OA\Property(property: 'type', type: 'MarketPlaceType'),
36+
'reviews' => new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(type: 'MarketPlaceReview')),
3237
]
3338
)]
3439
class RemoteCloudsResponseSchema {}

0 commit comments

Comments
 (0)