Open ObjectiveTruth opened 6 years ago
Heya, does this library support form data? I tried the following hoping my case classes would be converted to form data automatically but it seems to break
# parameters: # - name: body # in: formData # schema: # $ref: '#/definitions/models.Requests.FooRequest'
Best I got was simply adding
# consumes: # - multipart/form-data
However, it sends this in the request:
curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} http://redacted.url
Any leads on this?
+1 I've been looking for a way to do this as well.
@ObjectiveTruth @knordstrom We are currently reviewing it. It may take some time, but we plan to address it.
Heya, does this library support form data? I tried the following hoping my case classes would be converted to form data automatically but it seems to break
Best I got was simply adding
However, it sends this in the request:
curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} http://redacted.url
Any leads on this?