Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Media Type validation #154

Open
maxlinc opened this issue Nov 11, 2014 · 0 comments
Open

Media Type validation #154

maxlinc opened this issue Nov 11, 2014 · 0 comments

Comments

@maxlinc
Copy link
Collaborator

maxlinc commented Nov 11, 2014

Swagger has a stronger concept of media types (aka MIME types) than the original Pacto contracts. I think a good first step towards better support in Swagger is to allow it to validate that a request or response matches a specified media type. Each media type could have a validator, with a few common ones built-in (e.g. a CSV validator for "text/csv", a text validator for "text/plain; charset=utf-8"). Additional types could be supported via plugins.

That would partially solve #150 and prior requests to support XML.

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

No branches or pull requests

1 participant