iheartradio / play-swagger

Swagger spec generator for play framework
Apache License 2.0
403 stars 130 forks source link

Form data support? #185

Open ObjectiveTruth opened 6 years ago

ObjectiveTruth commented 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?

knordstrom commented 6 years ago

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

Javakky-pxv commented 1 year ago

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