play-swagger icon indicating copy to clipboard operation
play-swagger copied to clipboard

Form data support?

Open ObjectiveTruth opened this issue 7 years ago • 2 comments

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?

ObjectiveTruth avatar Oct 14 '17 18:10 ObjectiveTruth

+1 I've been looking for a way to do this as well.

knordstrom avatar Dec 06 '17 01:12 knordstrom

@ObjectiveTruth @knordstrom We are currently reviewing it. It may take some time, but we plan to address it.

Javakky-pxv avatar Jul 20 '23 13:07 Javakky-pxv