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
  • #3858
Closed
Open
Issue created Sep 07, 2019 by Administrator@rootContributor

[REQ] [dart] Generate a copyWith help method on models

Created by: jaumard

Is your feature request related to a problem? Please describe.

It can be very useful to generate a copyWith help method on the generated models. Generated models are immutable so to change a properties you need to recreate an object, a copyWith method will be super helpful for that.

Describe the solution you'd like

Modify the template to generate a copyWith method

Describe alternatives you've considered

Find a dart package that can generate this for us and just use it, but it will add an external dep so I don't recommend it.

What do you think guys ? @ircecho (2017/07) @swipesight (2018/09) @nickmeinhold (2019/09)

Assignee
Assign to
Time tracking