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
In my Swagger 2 spec, I have a Definition with an array property. Its items are defined as strings with an enum-erated list of values. When I use the "android" generator, it incorrectly HTML-encodes the List definition, resulting in a syntax error.
The actual problem here, is that the property is recognized as a single value of type GenderEnum, which, in turn, as a value List<String>, whereas it should be a value of type List<GenderEnum> and GenderEnum should use String type.
There is the same issue with the Kotlin-client generator (gradle plugin 3.3.4)
I'm not sure how to fix it.
Bug Report Checklist
Description
In my Swagger 2 spec, I have a Definition with an array property. Its items are defined as strings with an enum-erated list of values. When I use the "android" generator, it incorrectly HTML-encodes the List definition, resulting in a syntax error.
The property looks like:
and the resulting Java code looks like:
openapi-generator version
4.0.0-SNAPSHOT
OpenAPI declaration file content or url
https://gist.github.com/jacobweber/c21e944d6e627a92ddcfd02242aca117
Command line used for generation
Steps to reproduce
See above
Related issues/PRs
None
Suggest a fix
None
The text was updated successfully, but these errors were encountered: