Công cụ định dạng & Mã
Trình xác thực OpenAPI / Swagger
Validate OpenAPI 3 specs against the spec rules.
Ghi chú của biên tập viên
Understanding · A spec for the spec.
Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.
Các câu hỏi thường gặp
Quick answers.
›Which versions of OpenAPI are supported?
The validator supports OpenAPI 3.0 and 3.1, as well as legacy Swagger 2.0 definitions in both YAML and JSON formats.
›Is my API specification private?
Yes. Validation happens locally within your browser using JavaScript. Your API keys, endpoints, and schema details are never uploaded to our servers.
›How do I fix validation errors?
The tool provides the specific line and column number for each error alongside a description of the rule violation. Correct these values in your editor and the validator will refresh the status.
›Does this tool lint for best practices?
This tool focuses on structural validity against the official specification. For custom style guides or naming conventions, a dedicated linter like Spectral is typically required.
Mọi người cũng tìm kiếm
Công cụ liên quan
More in this room.
- OpenAPI 3.1 YAML ⇄ JSONChuyển đổi các đặc tả OpenAPI giữa YAML và JSON.
- OpenAPI → Axios Client TypeScriptTạo một Axios client có kiểu từ bất kỳ đặc tả OpenAPI nào.
- OpenAPI → Hook React QueryCác hook useQuery + useMutation được tự động tạo cho mỗi endpoint.
- OpenAPI → Postman CollectionTạo Postman collection v2.1 từ bất kỳ đặc tả OpenAPI nào.
- GraphQL SDL ⇄ Kiểu TypeScriptDuyệt qua một schema, phát ra các interface có kiểu — và ngược lại.
- JSON Schema → Zod / Valibot / ArkTypeBa hương vị trình xác thực runtime từ một JSON Schema.