名称:json-schema 描述:JSON Schema 验证与 API 合约设计。 允许的工具:Read, Write, Edit, Bash, Glob, Grep
JSON Schema 技能
提供 JSON Schema 验证的专业协助。
能力
- 编写 JSON Schemas
- 验证数据
- 设计 API 合约
- 生成文档
- 处理复杂类型
模式示例
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": { "type": "string", "format": "uuid" },
"name": { "type": "string", "minLength": 1 },
"email": { "type": "string", "format": "email" },
"age": { "type": "integer", "minimum": 0 }
},
"required": ["id", "name", "email"],
"additionalProperties": false
}
目标流程
- api-合约设计
- 验证设置
- 文档生成