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

Parameter type array in form data not support? #980

Closed
TranAn90 opened this issue Jun 23, 2016 · 1 comment
Closed

Parameter type array in form data not support? #980

TranAn90 opened this issue Jun 23, 2016 · 1 comment

Comments

@TranAn90
Copy link

I want to add a parameter type array in form data to upload multiple files but it seem not work.

My Swagger json

parameters:
        ...
        - name: files
          in: formData
          description: ''
          required: true
          schema:
            type: array
            items:
              type: object
              properties:
                file:
                  type: file
                caption:
                  type: string
 responses:
        '200':...

and I got this error:

Swagger Error
Not a valid parameter definition
@webron
Copy link
Contributor

webron commented Jun 23, 2016

That's because it's not supported in the spec - see OAI/OpenAPI-Specification#254. Unfortunately, this can't be done right now.

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

No branches or pull requests

3 participants