Skip to content

Conversation

@matiasperrone-exo
Copy link
Contributor

@matiasperrone-exo matiasperrone-exo commented Sep 30, 2025

@matiasperrone-exo matiasperrone-exo self-assigned this Sep 30, 2025
@smarcet smarcet force-pushed the main branch 2 times, most recently from 4f4b976 to 9ed27c0 Compare September 30, 2025 17:46
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch 2 times, most recently from 3ac00a5 to 95727fa Compare September 30, 2025 19:12
@matiasperrone-exo matiasperrone-exo marked this pull request as ready for review September 30, 2025 19:52
@matiasperrone-exo matiasperrone-exo changed the title Feature | Extend Swagger Coverage for controller /Apis/Marketplace/RemoteCloudsApiController.php Feature | Extend Swagger Coverage for controller Apis/Marketplace/RemoteCloudsApiController.php Sep 30, 2025
@smarcet smarcet force-pushed the main branch 2 times, most recently from e3e142a to 161d4d3 Compare October 1, 2025 02:13
Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiasperrone-exo review comments

@matiasperrone-exo
Copy link
Contributor Author

@smarcet please review, all the requested changes were incorporated.

@smarcet smarcet force-pushed the main branch 7 times, most recently from c94fc68 to 9a8387b Compare October 2, 2025 17:58
@matiasperrone-exo matiasperrone-exo added the documentation Improvements or additions to documentation label Oct 7, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from d829347 to 68b1898 Compare October 7, 2025 21:08
@matiasperrone-exo
Copy link
Contributor Author

Hello @smarcet

The changes were introduced from main, and as requested the schemas were move to its schema file. Please review the PR again

@matiasperrone-exo matiasperrone-exo changed the title Feature | Extend Swagger Coverage for controller Apis/Marketplace/RemoteCloudsApiController.php Feature | Extend Swagger Coverage for controller RemoteCloudsApiController.php Oct 7, 2025
@matiasperrone-exo matiasperrone-exo changed the title Feature | Extend Swagger Coverage for controller RemoteCloudsApiController.php Feature | Extend Swagger Coverage for controller RemoteCloudsApiController.php Oct 7, 2025
@matiasperrone-exo matiasperrone-exo changed the title Feature | Extend Swagger Coverage for controller RemoteCloudsApiController.php Feature | Extend Swagger Coverage for controller RemoteCloudsApiController Oct 7, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from 30526a7 to c9819cf Compare October 14, 2025 15:54
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from ed15034 to cdd3f91 Compare November 7, 2025 16:13
@matiasperrone-exo matiasperrone-exo added review Need reviewing from the developer and removed review Need reviewing from the developer labels Nov 10, 2025
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiasperrone-exo
In "RemoteCloudsResponse" these are invalid property types - 'Company', 'MarketPlaceType', 'MarketPlaceReview' - and render with "Unknown Type:" in the Swagger documentation. Should use ref.
'company' => new OA\Property(property: 'company', type: 'Company'),
'type' => new OA\Property(property: 'type', type: 'MarketPlaceType'),
'reviews' => new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(type: 'MarketPlaceReview')),

Example:
'company' => new OA\Property(
property: 'company',
ref: '#/components/schemas/Company',
description: 'Company object (when expanded)',
nullable: true
),
'type' => new OA\Property(
property: 'type',
ref: '#/components/schemas/MarketPlaceType',
description: 'Marketplace type object (when expanded)',
nullable: true
),
'reviews' => new OA\Property(
property: 'reviews',
type: 'array',
items: new OA\Items(ref: '#/components/schemas/MarketPlaceReview'),
description: 'Customer reviews (when expanded)',
nullable: true
),

Expanded parameters should list "reviews" as it's in the schema and but not currently in the list.

Be more descriptive - in keeping with other PRs - with the filter expressions:
description: 'Filter expressions in the format fieldvalue. Available fields: name, company. Operators: == (equals), =@ (starts with), @@ (contains).',

Is it's missing the 'page' and 'per_page' parameters.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from 62b7caf to 3f7b2c2 Compare November 27, 2025 15:50
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from fc19c63 to 7e5d26f Compare December 4, 2025 20:57
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Globally:
response: 200, // Should be Response::HTTP_OK

app/Swagger/MarketplaceSchemas.php:
Invalid types used: 'company' and 'MarketPlaceType', 'MarketPlaceReview'
For 'company' and 'MarketPlaceType' either reference an existing/new schema or just use the id integers and document the other on expansion.
For 'reviews', since the schema exists:

'reviews' => new OA\Property(
    property: 'reviews', 
    type: 'array', 
    items: new OA\Items(ref: '#/components/schemas/MarketPlaceReview'),
    description: 'Approved reviews. Only available with ?relations=reviews&expand=reviews'
),

@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch 2 times, most recently from e3df0c6 to 5402d01 Compare December 11, 2025 20:19
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@smarcet
Copy link
Collaborator

smarcet commented Dec 16, 2025

@matiasperrone this branch need a rebase against main and fixing the conflicts

@smarcet smarcet force-pushed the main branch 4 times, most recently from c6ecdd0 to 728ae67 Compare December 17, 2025 00:43
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller-marketplace---remotecloudsapicontroller branch from 5402d01 to 3cb78f9 Compare December 18, 2025 19:40
@matiasperrone-exo
Copy link
Contributor Author

@smarcet now it is rebased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants