mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-26 22:54:19 +00:00
f80fa08a01
This fixes an issue that makes the swift 4 api client fail to compile when using enums with a default value. The fix changes the toDefaultValue method to check if the property is of enum type, and then returns a properly formatted value. Looking into the code, I wonder why toEnumDefaultValue is not being used here, which seems to be the case for the java implementation.