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
  • #11288
Closed
Open
Issue created Jan 12, 2022 by Administrator@rootContributor

COLLECTION_FORMATS unresolved in generated api

Created by: AmazingTurtle

As defined in api.mustache#L103, the exported variable COLLECTION_FORMATS is used. It is defined in baseapi.mustache, however it is not imported in api.mustache thus causing error TS2304 for me when building the api client. See the screenshot below. I suggest to add an import for the COLLECTION_FORMATS variable in api.mustache.

image

edit: perhaps I'm wrong or I misunderstood something because theres some runtime aspect as well and I'm not certainly sure if the variable will be available at runtime. Therefore I'm asking for one of the maintainers to clarify this question - and if I'm right with my assumption, that this is a bug, then I'd be more than happy to provide a fix on my own.

Assignee
Assign to
Time tracking