A chai assertion plugin for validating Responses with a Swagger / OAI schema.
npm install --save-dev chai-validate-response
var chai = require("chai");
var chaiValidateResponse = require("chai-validate-response");
chai.use(chaiValidateResponse);
See test cases for usage with different response types (JSON, Promise, express, superagent).
chai-validate-response is licensed unter the MIT License.