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
  • #14868
Closed
Open
Issue created Mar 02, 2023 by Administrator@rootContributor

[REQ] Support for registering additional handlebars helpers

Created by: childish-sambino

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

I'm unable to register additional helpers in the HandlebarsEngineAdapter: https://github.com/OpenAPITools/openapi-generator/blob/057a56a8272aa9723278acc860abd6b24890d582/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/HandlebarsEngineAdapter.java#L80-L88

Describe the solution you'd like

Support for registering a callback function that is invoked with the Handlebars instance, or refactoring HandlebarsEngineAdapter so that it may be extended to without duplicating all the compileTemplate logic.

Describe alternatives you've considered

Currently I've extended HandlebarsEngineAdapter, but also had to copy most logic from compileTemplate as it's not extensible.

Additional context

Assignee
Assign to
Time tracking