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

proposal: allowing type file for arrays as parameter #748

Closed
LeFnord opened this issue Aug 2, 2016 · 3 comments
Closed

proposal: allowing type file for arrays as parameter #748

LeFnord opened this issue Aug 2, 2016 · 3 comments

Comments

@LeFnord
Copy link

LeFnord commented Aug 2, 2016

following parameter

{
  "in": "formData",
  "name": "file[file]",
  "description": "The actual file",
  "type": "array",
  "items": {
    "type": "file"
  },
  "required": false
}

is invalid, but intuitive correct and can be handled by the API.

I would propose, to allow all types for items as for parameter except array and object these should be reserved for body parameters defined as definition object.

@ePaul
Copy link
Contributor

ePaul commented Aug 3, 2016

Just to make sure I understand what you are proposing:

This is allowing uploading of several files with one request, each of them in a form data part, each with the same name, like what is defined in RFC 7578, section 4.3.

This seems to be related to #694, #254, #430.

@LeFnord
Copy link
Author

LeFnord commented Aug 4, 2016

Hi @ePaul … yeap, this is what I want to propose, unless it gives a better way to document the uploading of several files including some meta-data (e.g. file-size)

@fehguy
Copy link
Contributor

fehguy commented Feb 1, 2017

See #878

@fehguy fehguy closed this as completed Feb 1, 2017
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