PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 开发

OpenAPI 查看与校验工具.

打开 OpenAPI 3 或 Swagger 2 文件,列出所有接口,并检查失效的 $ref、未声明的路径参数、重复的 operationId、缺失的响应和安全方案,附 curl 示例。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

Loading the calculator…

使用方法: OpenAPI 查看与校验工具

输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

Structural checks only: not every JSON Schema keyword is validated and external $refs are not followed. Up to 20 MB. Everything is calculated in your browser; nothing you type is uploaded.

The file is parsed as YAML or JSON; local $ref pointers are resolved, path templates are compared with declared path parameters and operationIds are counted.

The Pet Store example lists 3 operations; renaming {petId} to {id} in the URL is reported as an undeclared path parameter.