Open sparmboy opened 3 years ago
This case with useOptional=true and delegatePattern=true generates this error. If one of this switches is set to false, the compilation is successful. We are running into the same issue. Does anyone have a better workaround?
Bug Report Checklist
Description
When defining an endpoint that consumes multipart/form-data that contains optional parameters, the generated XXXApi.java interface class does not produce a parameter wrapped in
Optional
whereas the accompanying XXXXApiDelegate.java does, thus where the Api calls the Delegate, the compiler rightly throws the error:Generated API
Generated API Delegate
openapi-generator version
5.1.1
swagger version
2.0
OpenAPI declaration file content or url
pom
Generation Details
Run:
Steps to reproduce
Run:
Related issues/PRs
Suggest a fix
Need to have the API define optional parameters as
Optional