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

'File' type validation #1

Closed
webron opened this issue Apr 24, 2014 · 1 comment
Closed

'File' type validation #1

webron opened this issue Apr 24, 2014 · 1 comment

Comments

@webron
Copy link
Contributor

webron commented Apr 24, 2014

According to - https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#434-file - "When using File, the consumes field MUST be "multipart/form-data", and the paramType MUST be "form". ".

In the pet store sample there's a bug where the paramType is "body" - http://petstore.swagger.wordnik.com/api/api-docs/pet - check out the POST operation on "/pet/uploadImage".

fge added a commit that referenced this issue Apr 24, 2014
fge added a commit that referenced this issue Apr 24, 2014
Use oneOf:

* either the object must not have "File" as a "type";
* or its "paramType" and "consumes" members must comply.
@webron webron unassigned fge Oct 20, 2014
@webron
Copy link
Contributor Author

webron commented Feb 13, 2015

Closing for now, will reopen should an issue arise.

@webron webron closed this as completed Feb 13, 2015
fehguy pushed a commit that referenced this issue Mar 14, 2016
fehguy pushed a commit that referenced this issue Jun 7, 2017
Update json-schema-validator (SONATYPE-2015-0090)
fehguy pushed a commit that referenced this issue Jun 12, 2017
cvgaviao pushed a commit to cvgaviao/swagger-parser that referenced this issue Apr 9, 2019
…-conversion

Fix OAS2 parameter conversion
gracekarina pushed a commit that referenced this issue May 15, 2019
Update to latest swagger-api/swagger-parser
gracekarina pushed a commit that referenced this issue Aug 10, 2019
Merge pull request #1134 from scottr-ad/master
gracekarina pushed a commit that referenced this issue Oct 9, 2019
gracekarina pushed a commit that referenced this issue Oct 19, 2022
Get latest changes from swagger-parser origin repository
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

2 participants