Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Validation error when specifying "file" as response type #4

Closed
sharpworks opened this issue Jan 29, 2016 · 1 comment
Closed

Validation error when specifying "file" as response type #4

sharpworks opened this issue Jan 29, 2016 · 1 comment

Comments

@sharpworks
Copy link

Hi,

When trying to validate a definition which returns file as a response type I get the following error:

Data does not match any schemas from 'oneOf'

An example of the spec which produces the error is:

responses:
    '200':
         description: OK
         schema:
             type: file

The file validates fine when viewed/edited in the swagger editor however fails when run through the gulp task.

It appears to be the same issue in the spec found here.

Thanks

@gersongoulart
Copy link
Owner

Hey @sharpworks, it seems like there was a problem in one of the validation packages used. I just updated all dependencies to the project and I believe this should be working properly now. Would you please update and let me know if it works for you? Cheers!

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

No branches or pull requests

2 participants