Commit b443ebb
fix: don't propagate isString from enum models to properties
Setting property.isString on enum ref properties caused duplicate
WriteString statements in anyOf models (e.g., IconsSizeParameter).
String enum properties are already handled through the isEnum template
path, not the isString path, so propagating isString is both unnecessary
and harmful.
Co-authored-by: alexaka1 <22166651+alexaka1@users.noreply.github.com>1 parent cdb6d61 commit b443ebb
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| |||
0 commit comments