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
  • #5781
Closed
Open
Issue created Apr 01, 2020 by Administrator@rootContributor

[REQ] [typescript-angular] support for object query parameters as nested key/json string

Created by: dougal83

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

Cannot consume . notation query parameters objects in a current project.

Describe the solution you'd like

Extend support to include option to configure how objects are encoded in query parameters. To include options for nested keys and JSON string.

Describe alternatives you've considered

Support . notation in current project but that would not solve the issue for others.

Additional context

Suggest change (as an option):

https://github.com/OpenAPITools/openapi-generator/blob/603709e17e318b22177f7dff193f65cf8527dbcf/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache#L181

key != null ? `${key}[${k}]` : k,

Also, add option to JSON stringify the object.

See: #4407

Assignee
Assign to
Time tracking