You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: