Bug Report Checklist
Description
Operation parameter defaults for enums don't get passed through as raw values.
Therefore, when a reserved Kotlin keyword is set as the default value of that parameter, Mustache will html-escape the backticks, generating invalid code.
This is true for all clients.
openapi-generator version
master
OpenAPI declaration file content or url
...
"paths": {
"/documents": {
"get": {
"operationId": "document-download",
"parameters": [
{
"name": "disposition",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "inline",
"enum": [
"attachment",
"inline"
]
}
}
]
}
...
generates
fun documentDownload(disposition: DispositionDocumentDownload? = DispositionDocumentDownload.`inline`) : java.io.File
Bug Report Checklist
Description
Operation parameter defaults for enums don't get passed through as raw values.
Therefore, when a reserved Kotlin keyword is set as the default value of that parameter, Mustache will html-escape the backticks, generating invalid code.
This is true for all clients.
openapi-generator version
masterOpenAPI declaration file content or url
generates