Skip to content

requestBody and responseBody in openapi_context not working #4000

Description

@zalesak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions