See https://github.com/swagger-api/swagger-codegen/issues/8409 Solution: adapt PR https://github.com/swagger-api/swagger-codegen/pull/8410