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
it generates the endpoint correctly (using cURL works fine) but while using the Kotlin okhttp autogenerated client the files are never there.
After exploring the code and comparing it to the Java counterpart, I noticed that the client only considers the case where the field value is just a File but it doesn't work when the field is an optional field or the type List
I am not sure what to write here. I tested it in my own project (by building it locally and adding it manually in my project). I am not sure how to test it within this project and some guidance would be very much appreciated.
Steps to reproduce
Just using the autogenerated client by not sending a File or sending multiple files will create reproduce the error.
Related issues/PRs
Suggest a fix
I did some changes and I will attach a PR as soon as I open it with the possible fix. EDIT: Here it is the PR
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Describing an endpoint as follows:
it generates the endpoint correctly (using cURL works fine) but while using the Kotlin okhttp autogenerated client the files are never there.
After exploring the code and comparing it to the Java counterpart, I noticed that the client only considers the case where the field value is just a File but it doesn't work when the field is an optional field or the type List
openapi-generator version
7.11.0
OpenAPI declaration file content or url
Generation Details
I am not sure what to write here. I tested it in my own project (by building it locally and adding it manually in my project). I am not sure how to test it within this project and some guidance would be very much appreciated.
Steps to reproduce
Just using the autogenerated client by not sending a File or sending multiple files will create reproduce the error.
Related issues/PRs
Suggest a fix
I did some changes and I will attach a PR as soon as I open it with the possible fix. EDIT: Here it is the PR
The text was updated successfully, but these errors were encountered: