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
  • #4583
Closed
Open
Issue created Nov 22, 2019 by Administrator@rootContributor

[REQ] [Elm] generate list of enum values

Created by: andys8

There enum generation results in a tagged union like this:

type PaymentsPerYear
    = Monthly
    | Quarterly
    | Halfyearly
    | Yearly

It would be super nice if there would also be an enumeration in form of a List or Set. This way it's made sure that the list of values is complete.

paymentsPerYear = [ Monthly, Quarterly, Halfyearly, Yearly ]

This is basically solving a feature the language Elm is currently missing and maybe a bit more than what to expect from the generator but it would be super nice :)

Assignee
Assign to
Time tracking