使用 Jest 或 Chai 来验证 HTTP 响应是否符合 OpenAPI 规范
Use Jest or Chai to assert that HTTP responses satisfy an OpenAPI spec.
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.
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()
Richard Waller
Jonny Spruce
Alex Dobeck
Ben Guthrie
Martijn Vegter
Ludek
Tommy Giardina
Oleksandr Khotemskyi
Amit Keinan
DetachHead
Kristoffer Karlsson
暂无开放 Issues,或尚未同步最近议题。