Skip to content

openapi-library/OpenAPIValidators

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 5, 2020 16:09
January 3, 2022 14:53

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

πŸ“–