Validate JSON/YAML files against a schema, auto-fix common format errors, and generate typed stubs. / 根据架构验证 JSON/YAML 文件,自动修复常见格式错误并生成类型桩。
---
name: json-schema-validator
description: "Validate JSON/YAML files against a schema, auto-fix common format errors, and generate typed stubs. / 根据架构验证 JSON/YAML 文件,自动修复常见格式错误并生成类型桩。"
version: 1.0.0
topics: [json,yaml,schema,validation,data,数据验证,格式检查]
metadata:
openclaw:
requires:
bins:
- bash
- curl
emoji: "✅"
homepage: https://kingai.work/
install: []
---
# ✅ JSON Schema Validator / JSON 架构验证器
> Validate JSON/YAML files against a schema, auto-fix common format errors, and generate typed stubs. / 根据架构验证 JSON/YAML 文件,自动修复常见格式错误并生成类型桩。
> 🦁 **由 KingAI.Work 出品** — 智能进化|vip@kingai.work
---
## Who This Is For / 适用人群
• A developer misformats a config file for a microservice. This validator catches the error and auto-fixes it, preventing deployment crashes. / 开发者错误配置微服务文件,验证器立即发现并修复,避免部署崩溃。
• A data engineer needs to ensure thousands of API responses match a schema. The batch validation feature quickly flags mismatches. / 数据工程师需确保数千API响应符合架构,批量验证快速标记不匹配项。
• A team wants to generate typed interfaces from an existing schema for a new project. One command creates them for multiple languages. / 团队需从现有架构生成类型接口用于新项目,一条命令即可创建多语言类型桩。
## Core Capabilities / 核心能力
• Validate JSON/YAML instantly against any schema. / 秒级验证JSON/YAML文件,精准匹配任意架构,告别人工检查的繁琐。
• Auto-fix common format errors like trailing commas and missing quotes. / 一键自动修复尾随逗号、缺失引号等常见格式错误,让数据恢复规范。
• Generate typed stubs for Python, TypeScript, and Go from any schema. / 从任意架构自动生成Python、TypeScript和Go的类型桩,提升开发效率。
• Highlight schema violations with exact line and path details. / 精确高亮显示违反架构的具体行号和路径,问题定位快如闪电。
• Support complex nested schemas with deep validation (Pro-only). / 支持复杂嵌套架构的深度验证,确保企业级数据的严谨性(仅限Pro)。
• Batch-validate thousands of files and export detailed reports (Pro-only). / 批量验证数千个文件并导出详细报告,适合大型项目全量检查(仅限Pro)。
## Try It Now / 立即体验
```bash
bash validate-json data.json --schema schema.json --auto-fix Validates 'data.json' against 'schema.json' and fixes errors. / 验证'data.json'是否符合'schema.json',并自动修复错误。
```
## Feature Comparison / 功能对比
| | Free | Pro |
|--|:----:|:---:|
| Core / 核心 | ✅ | ✅ |
| Batch / 批量 | — | ✅ |
| AI / AI 增强 | — | ✅ |
| SLA / 支持 | Community | Priority |
• Unlock batch validation for large-scale projects and CI/CD pipelines.
• 开启大规模项目与CI/CD管道的批量验证,提升团队协作效率。
• Access deep nested schema validation for complex enterprise use cases.
• 获取复杂企业级场景的深度嵌套架构验证,确保数据零误差。
• Receive priority support and early access to new language stub generators.
• 享受优先支持及新语言类型桩生成器的抢先体验,保持技术领先。\n\n
---
*Published by King AI — kingai.work*
don't have the plugin yet? install it then click "run inline in claude" again.