Glyph WidgetsGlyph Widgets
关于联系隐私条款在Ko-fi上支持

© 2026 Glyph Widgets. 保留所有权利。

·

100% 客户端处理

OpenAPI 验证器

最后更新:2026年3月9日

即时验证 OpenAPI 规范。检测错误,检查最佳实践,确保您的 API 文档完整。所有处理都在浏览器中本地完成。

OpenAPI 验证器

分享

Tool History is a Supporter feature.

Tool Notes is a Supporter feature.

功能

  • ▶验证 OpenAPI 3.x 的 JSON 和 YAML 规范
  • ▶检查缺失的描述和 operationId
  • ▶自动检测 JSON vs YAML 格式
  • ▶带路径上下文的详细错误消息
  • ▶最佳实践警告
  • ▶快速示例规范助您入门
  • ▶Server and base URL display
  • ▶100% client-side processing

如何使用此工具

1

粘贴您的规范

复制您的 OpenAPI JSON 或 YAML 规范并粘贴到编辑器中。

2

验证

点击「验证规范」以检查是否符合 OpenAPI 3.x 标准。

3

查看结果

查看红色高亮的错误并在您的规范中修复它们。

4

Lint

使用「检查最佳实践」来检查缺失的描述和 operationId。

5

Inspect Schemas

Navigate to the Schemas tab to browse all defined data models. View property names, types, required fields, and descriptions for each schema.

OpenAPI 验证

验证器解析您的 YAML 或 JSON,并使用 @readme/openapi-parser 根据 OpenAPI 3.x 规范模式进行检查。

最佳实践检查

Linter 检查每个操作中缺失的 summary、description 和 operationId 字段,以及响应描述。

Endpoint Extraction

All paths and HTTP methods are extracted and grouped by their tags. Operations without tags are grouped under a default category. Parameters, request bodies, and response codes are displayed for each operation.

Schema Browsing

Component schemas (OpenAPI 3.x) and definitions (Swagger 2.0) are extracted and displayed as browsable trees. You can inspect each property's type, format, description, and whether it is required.

常见问题

目前支持 OpenAPI 3.0.x 和 3.1.x。

相关工具

JSON Formatter

格式化和验证 JSON

YAML Formatter

格式化和验证 YAML