-
Notifications
You must be signed in to change notification settings - Fork 2
Feature | Extend Swagger Coverage for controller PublicCloudsApiController
#362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature | Extend Swagger Coverage for controller PublicCloudsApiController
#362
Conversation
2acb44b to
131872c
Compare
97cab41 to
a2cc09d
Compare
c94fc68 to
9a8387b
Compare
a2cc09d to
dc53dbc
Compare
PublicCloudsApiController
58da529 to
d762563
Compare
026c961 to
a843136
Compare
caseylocker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generating a schema reference error and breaking doc generation.
The schema: parameter in OpenAPI attributes should NOT include the "Schema" suffix, but the class name should keep it.
In MarketplaceSchemas.php, change:
schema: 'PublicOrPrivateCloudsResponseSchema'→schema: 'PublicOrPrivateCloudsResponse'schema: 'PaginatedPublicOrPrivateCloudsResponseSchema'→schema: 'PaginatedPublicOrPrivateCloudsResponse'
Keep class names as: class PublicOrPrivateCloudsResponseSchema (correct as-is)
See /app/Swagger/schemas.php for examples: schema: 'RSVPInvitation' with class RSVPInvitationSchema
Minor - PHPDoc typo
Line 24: "PrivateCloudsApiController" → "PublicCloudsApiController"
After these fixes, please run php artisan l5-swagger:generate to verify.
a843136 to
2161e2e
Compare
Done, thanks! |
caseylocker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is approved for merge @matiasperrone-exo @smarcet
|
@matiasperrone-exo On second look this one and #363 both have a few issues that I didn't catch.
Example:
|
…Marketplace Schemas file
348b4cf to
73b6562
Compare
73b6562 to
54a04db
Compare
… and DataCenterRegion schemas
caseylocker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. @smarcet if you agree please merge.
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Task:
Ref: https://app.clickup.com/t/86b6wkgen