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
The generated result that is caused compilation error and malformed property name in javadoc section
/** * Simple API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 0.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */packageru.tinkoff.bpm.test/** * * @param `return` */dataclassEnumModel (
val `return`: `return`? = null
) {
/** * * Values: _1,_0 */enumclass `return`(valvalue: kotlin.String){
_1("1"),
_0("0");
}
}
Complilation error
Malformed javadoc
The text was updated successfully, but these errors were encountered:
Description
Problem occurres after generation model from API spec containing reserved word as enum
Swagger-codegen version
❯ swagger-codegen version
3.0.47
Swagger declaration file content or url
Command line used for generation
swagger-codegen generate -l kotlin-client -i /swagger/test-spec.yaml
Steps to reproduce
Related issues/PRs
#9948
#6393
Suggest a fix/enhancement
swagger-api/swagger-codegen-generators#1196
Generated Model
The generated result that is caused compilation error and malformed property name in javadoc section
Complilation error
Malformed javadoc
The text was updated successfully, but these errors were encountered: