openapi-library / OpenAPIValidators

Use Jest or Chai to assert that HTTP responses satisfy an OpenAPI spec
MIT License
191 stars 35 forks source link
chai chai-plugin jest jest-tests openapi openapi-specification openapi-validation openapi3

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

๐Ÿ“–