Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #7228
Closed
Open
Issue created Aug 17, 2020 by Administrator@rootContributor

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

Created by: 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 https://github.com/OpenAPITools/openapi-generator/issues/6215#issuecomment-670475820

Assignee
Assign to
Time tracking