Hi, I think there is a mistake in the constructor of AbstractCQRSOperation. The openapi constructor parameter allow only boolean type but the inherited class allow bool|OpenApiOperation|null $openapi = null.
Expected behavior
We can set the openapi parameter with the class ApiPlatform\OpenApi\Model\Operation to specify many things like request body.
Prerequisites
Describe the bug and add attachments
Hi, I think there is a mistake in the constructor of
AbstractCQRSOperation
. Theopenapi
constructor parameter allow only boolean type but the inherited class allowbool|OpenApiOperation|null $openapi = null
.Expected behavior
We can set the
openapi
parameter with the classApiPlatform\OpenApi\Model\Operation
to specify many things like request body.Steps to reproduce
Add an openapi property to an existing ApiPlatform ressource in the module
ps_apiresource
. You can take the example here : https://api-platform.com/docs/core/openapi/#changing-operations-in-the-openapi-documentation.PrestaShop version(s) where the bug happened
9.0.0
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
Soledis