Skip to content

[aspnetcore] configuration options to generate IActionResult with ActionResult<{{dataType}}>` #7228

Open
@alexbenitez

Description

@alexbenitez

Is there a way or config option (https://openapi-generator.tech/docs/generators/aspnetcore/) available to generate controllers using the generic IActionResult<T> as the return type instead of just IActionResult? (to constraint the expected object to be returned)

I see @InfoSec812 was looking forward for the same feature.

Same here... I need to modify the template for the controllers to replace IActionResult with ActionResult<{{dataType}}>

Originally posted by @InfoSec812 in #6215 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions