This repository was archived by the owner on Nov 8, 2024. It is now read-only.
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
Support "file" in request/response #267
Open
Description
I don't think Swagger adapter correctly supports {"type":"file"}
in the request or response. It is a Swagger extension to the spec. Linking relevant docs (also mentioned in the Data Types section). Since this is something specific to a certain format, I think Dredd shouldn't be the one dealing with it. The Swagger adapter should take care of the specifics and pass on something which looks like raw HTTP request-response pair and which Dredd already understands.
Real world example of usage in response can be seen in apiaryio/dredd#883:
...
responses:
200:
description: "CVS data"
schema:
type: "file"
...