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

Support for binary data #52

Closed
pickerflicker opened this issue Mar 5, 2014 · 5 comments
Closed

Support for binary data #52

pickerflicker opened this issue Mar 5, 2014 · 5 comments

Comments

@pickerflicker
Copy link

My api serves images inline, so the body contains actual data instead of json. In this case, I only want to validate that a non-0 body size is returned with the expected content type.

@netmilk
Copy link
Contributor

netmilk commented Mar 10, 2014

Hi @pickerflicker,
I'm sorry, but binary blobs are not supported in the API Blueprint format at this moment and can't be used for testing with Dredd. As a hairy workaround you can specifying empty http body and proper content-length header so testing of body will be omitted.
Adam

@netmilk netmilk added bug and removed bug labels Mar 10, 2014
@pickerflicker
Copy link
Author

I see. Thanks for the tip.

@cilf
Copy link

cilf commented Jul 13, 2015

hey guys,
the suggested workaround is not working for me :-/

I have a

### Get photo [GET]

+ Response 200 (image/jpeg)

    + Headers

            content-length: 6347

but it fails with fail: body: Real and expected data does not match.

Do you have any idea how to skip validating image data and only check the response status code?

@mikz
Copy link

mikz commented Feb 25, 2016

Having the same issue. Would be nice to have at least a working workaround.

Looks like that would be properly supported by apiaryio/api-blueprint#20

@honzajavorek
Copy link
Contributor

Please see #87 (comment).

artem-zakharchenko pushed a commit that referenced this issue Oct 9, 2019
Node 5 isn't LTS and adds unneccessary Travis CI overhead
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

5 participants