You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating a kotlin client for a multipart/form-data request with the jvm-spring-webclient library, the api client returns the following error: Content type 'multipart/form-data' not supported for bodyType=java.util.Collections$SingletonMap<?, ?>.
This is because of a bug introduced by #11911 and it was fixed for the okhttp library with this pull request #13435.
openapi-generator version
7.8.0
OpenAPI declaration file content or url
Here is a minimal spec for a multipart/form-data file upload.
Bug Report Checklist
Description
When generating a kotlin client for a multipart/form-data request with the jvm-spring-webclient library, the api client returns the following error:
Content type 'multipart/form-data' not supported for bodyType=java.util.Collections$SingletonMap<?, ?>
.This is because of a bug introduced by #11911 and it was fixed for the okhttp library with this pull request #13435.
openapi-generator version
7.8.0
OpenAPI declaration file content or url
Here is a minimal spec for a multipart/form-data file upload.
Generation Details
kotlin, jvm-spring-webclient
Related issues/PRs
#11911
#13435
Suggest a fix
Here is how the ApiClient is generated. Only the relevant method is shown.
Here is how a working solution might look like:
I will try to make a PR with this fix in the following days.
The text was updated successfully, but these errors were encountered: