OpenAPITools / OpenAPITools/openapi-generator
HandlebarsEngineAdapter outputs warning on property reference
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
When using the HandlebarsEngineAdapter, expressions such as {{description}} in a template file gives the warning message "[WARNING] Unregistered helper name 'with', processing template:". Here is an example of the error message
/**
* {{{description}}}
*/
[WARNING] Unregistered helper name 'with', processing template:
I'm not familiar enough with the jknack Handlebars implementation to know whether this is a real issue or not. But if my understanding is correct, the callback registered with registerHelperMissing should probably not log if options.helperName.equals("with").
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/HandlebarsEngineAdapter.java#L77 and reproduce the warning with a template containing {{description}} or {{{description}}}. Inspect the registerHelperMissing callback and confirm the fix by verifying property references render without the unregistered-helper warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- handlebars, java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100