yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
625 stars 146 forks source link

Append any values to MultipartFormData. #293

Closed 0x0c closed 2 years ago

0x0c commented 2 years ago

Motivation

Currently, APIClient could not send some value by multipart/form-data. We can check which value will send here and only limited types of value can be send.

This PR supports to send any value through multipart/form-data. Some codes are inspired by Alamofire here.

Related issue

This PR may solve this issue https://github.com/yonaskolb/SwagGen/issues/177.