Created by: nekkiy
cc @jimschubert (2017/09), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11)
For details see test org.openapitools.codegen.kotlin.spring.KotlinSpringServerCodegenTest#embeddedEnumArrayTest
This PR contains commits from https://github.com/OpenAPITools/openapi-generator/pull/4544 Related bug https://github.com/OpenAPITools/openapi-generator/issues/4368