Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form data support? #185

Open
ObjectiveTruth opened this issue Oct 14, 2017 · 2 comments
Open

Form data support? #185

ObjectiveTruth opened this issue Oct 14, 2017 · 2 comments

Comments

@ObjectiveTruth
Copy link

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
Copy link

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

@Javakky-pxv
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants