chai-openapi-response-validator

Use Chai to assert that HTTP responses satisfy an OpenAPI spec


Keywords
chai, chai-plugin, http, response, openapi, validate, jest, jest-tests, openapi-specification, openapi-validation, openapi3
License
MIT
Install
npm install chai-openapi-response-validator@0.14.2

Documentation

OpenAPI Validators

build status style codecov MIT License contributions welcome

Use Jest or Chai to assert 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 Jest and Chai to support the OpenAPI standard for documenting REST APIs. In your JavaScript tests, you can simply assert expect(responseObject).toSatisfyApiSpec()

jest-openapi

downloads npm

Chai OpenAPI Response Validator

downloads npm

Contributors


Richard Waller

🚧 💻 📖 👀

Jonny Spruce

💻 📖 👀

Alex Dobeck

💻 🐛

Ben Guthrie

💻 🐛

Martijn Vegter

💻

Ludek

💻 🐛

Tommy Giardina

💻 🐛

Oleksandr Khotemskyi

📖

Amit Keinan

💻

DetachHead

🐛

Kristoffer Karlsson

📖