OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
When generating a spring-mvc controller from an opan api yaml with a non required parameter (required: false) the generated method annotated with request mapping annotations declared the parameter type wrapped in Optional (e.g. Optional myparam )
Description
When generating a spring-mvc controller from an opan api yaml with a non required parameter (required: false) the generated method annotated with request mapping annotations declared the parameter type wrapped in Optional (e.g. Optional myparam )
The method that the call is delegated to ( in this example searchGet) does not declare the parameter as Optional Type:
That results in compiler errors in the generated code!
openapi-generator version
3.3.0, master
OpenAPI declaration file content or url