apiaryio / gavel.js

Validator of HTTP messages (JavaScript implementation)
MIT License
97 stars 22 forks source link

Be able to validate a HTTP message in one API call #9

Closed Almad closed 7 years ago

Almad commented 11 years ago

Like

gavel.isValid
    expected:
        request:   request
        response: response
    real:
        request:   request
        response: response
, (err, result) ->

would be a welcome wrapper.

honzajavorek commented 7 years ago

I believe this is the case already: https://github.com/apiaryio/gavel.js/blob/master/src/validate.coffee#L16 Correct me if I'm wrong, but I think given the time it was created (2013), this is a stale issue 🙂