Closed AndrewSB closed 1 year ago
It looks good, but one thing I would look for is making sure you are not passing the binary data (Data
) in the methods that accept Decodable
. By default, JSONDecoder
encodes binary data using base64
, which is not what you want in most cases. I think you are good in this case, because APIClient/send
doesn't use JSONDecoder
when you pass Data
.
For other questions, I'd suggest following the MultipartFormDataKit docs. Get is a micro-framework: there is nothing built-in by design.
appreciate the lookover, and all the other work you put out @kean!
@AndrewSB Hi ! Could you please tell me what Paths.me.picture.patch
does ? Can you share its code ?
I didn't see an example of how to do this, i'm using MultipartFormDataKit & what i'm doing is
but it feels a little verbose at the callsite. my swagger definition says that the form should contain data at the key
file
, for exampleis this the expected integration? or is there something a little less verbose?