-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Description
API Platform version(s) affected: 2.6.X
Description
I am not sure if it is a bug or feature with documentation issue :).
After upgrade from 2.5.x to 2.6.x. requestBody (responses as well) in annotation stops working as described in example here:
https://api-platform.com/docs/core/file-upload/#handling-file-upload
Actually I think there is only one workaround - decorate OpenApiFactory, but this is really too complicated. Having this settings in annotation was very handy.
How to reproduce
Use this example:
https://api-platform.com/docs/core/file-upload/#handling-file-upload
requestBody in openApi doc, remains the same as without "requestBody" specified.
Possible Solution
add requestBody and responses support to OpenApiFactory
Additional Context
N/A