westfieldlabs / apivore

Tests your rails API against its Swagger description of end-points, models, and query parameters.
Apache License 2.0
213 stars 66 forks source link

Errors on non-JSON responses #108

Open aub opened 7 years ago

aub commented 7 years ago

It seems the library only supports JSON responses. I have an endpoint that returns an image, and the result of testing it is a JSON::ParserError. There are a number of places where the response is parsed as JSON, but the first one where the error occurs is in the response_body method of validator.rb.