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
{{ message }}
Repository navigation
[BUG][Kotlin] Enum with Int values generated to hold StringΒ #15204
Generated code has type String in the declaration (enum class TypeIDs(val value: kotlin.String)), however every entry is populated with an Int value (ex. _0(0), and not _0("0")), which results into a compilation error.
Activity
noulis commentedon Jul 6, 2023
Any workaround for this? Or any expectation if this will be fixed?
ctamisier commentedon Jan 18, 2024
This also can be reproduced with this openapi file: https://api-docs.jrni.com/v5/swagger/admin.json
(also with openapi-generator 7.2.0 version)
Aschraf commentedon May 16, 2024
Still happening with 7.5.0
takkiraz commentedon Nov 3, 2024
Still happening with 7.9.0
childnode commentedon Mar 13, 2025
yes, still alive on 7.12.0
Example:
in https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/api/openapi/openapi_v2.yaml
by using
exviva commentedon Nov 10, 2025
I opened a PR with the fix: #22324