百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

OpenAPIValidators

> DevOps
开源

使用 Jest 或 Chai 来验证 HTTP 响应是否符合 OpenAPI 规范

195 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 Jest 或 Chai 来验证 HTTP 响应是否符合 OpenAPI 规范

OpenAPI Validators

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

Chai OpenAPI Response Validator

Contributors ✨

Richard Waller

Jonny Spruce

Alex Dobeck

Ben Guthrie

Martijn Vegter

Ludek

Tommy Giardina

Oleksandr Khotemskyi

Amit Keinan

DetachHead

Kristoffer Karlsson

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptchaichai-pluginjestjest-tests

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理