You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When an OpenAPI definition contains parameters named with kotlin reserved-words, instead of generating code with those names between backticks (e.g. `when`), they are escaped with HMTL character ` (i.e. `is`).
Open the generated directory in your favorite code editor and do a global search for `. You should see multiple occurrences, which make the code not compilable.
Bug Report Checklist
Description
When an OpenAPI definition contains parameters named with kotlin reserved-words, instead of generating code with those names between backticks (e.g.
`when`
), they are escaped with HMTL character`
(i.e.`is`
).openapi-generator version
7.4.0
OpenAPI declaration file content or url
Generation Details
Use the following cli command assuming the previous definition is in a
openapi.yml
file:Steps to reproduce
Open the generated directory in your favorite code editor and do a global search for
`
. You should see multiple occurrences, which make the code not compilable.Related issues/PRs
Related to:
Suggest a fix
If
{{paramName}}
is changed to{{{paramName}}}
in every template file, the code generates successfully.The text was updated successfully, but these errors were encountered: