Skip to content

Response body #8

@consense

Description

@consense

As far as I understand it is currently not possible to extract the response body automatically from type of the returned value in the controller./action.

Is there a way to describe it manually? In particular in many cases the definition of the response object is already present in the openapi-doc as it was used as request body in another action (think model-DTO being used as request for updateModel-PUT action and as response for getModel-GET action.
So it would be amazing not having to duplicate the type definitions in actual code as well as inside the @openapi decorator.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions