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
  • #9854
Closed
Open
Issue created Jun 28, 2021 by Administrator@rootContributor

[dart][dart-dio][dart-dio-next] Add support for classes that extend EnumClass to encodeCollectionQueryParameter

Created by: tfbsza

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

Recent additions to the dart-dio and dart-dio-next generators (https://github.com/OpenAPITools/openapi-generator/commit/fdbf02764d144ff1469ce3905dff5b19352b6447) fixed encoding query parameters correctly. It doesn't seem to support classes that extend EnumClass though.

Describe the solution you'd like

Please add support for classes that extend EnumClass.

Describe alternatives you've considered

As a temporary fix, I manually changed line 64 of generated file api_util.dart which fixed the issue in the meantime:

Changed from: ListParam<T> encodeCollectionQueryParameter<T>

Changed To: ListParam<String> encodeCollectionQueryParameter<T>

Assignee
Assign to
Time tracking