kruegerb-rv/OpenAPIValidators

Chai and Jest support for asserting that HTTP responses satisfy an OpenAPI spec

★ 0Forks 0GitHub ↗Compare

README

OpenAPI Validators

Build Status dependencies style codecov

Chai and Jest support for asserting that HTTP responses satisfy an OpenAPI spec.

Problem

If your server's behaviour doesn't match your API documentation, then you need to correct your server, your documentation, or both. The sooner you know the better.

Solution

These test plugins let you automatically test whether your server's behaviour and documentation match. They extend Chai and Jest to support the OpenAPI standard for documenting REST APIs. In your JavaScript tests, you can simply assert expect(responseObject).toSatisfyApiSpec()

downloads npm

downloads npm

Contributors

rwalle61dependabot-preview[bot]dependabot[bot]AlexDobeckBenGu3JonnySprucekristofferkarlsson93mvegtertobespc

Issues