WebTools
所有工具
🇺🇸
EN
🇯🇵
JA
🇨🇳
ZH
🇰🇷
KO
首页
/
工具列表
/
JSON Schema 生成器
JSON Schema 生成器
从JSON数据自动生成JSON Schema。用于API文档和验证设计。
JSON入力
{ "id": 1, "username": "yamada", "email": "yamada@example.com", "active": true, "score": 98.5, "roles": ["admin", "user"], "profile": { "age": 28, "city": "東京" } }
JSON Schema(Draft-7)
コピー
{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Root", "type": "object", "properties": { "id": { "type": "integer" }, "username": { "type": "string" }, "email": { "type": "string" }, "active": { "type": "boolean" }, "score": { "type": "number" }, "roles": { "type": "array", "items": { "type": "string" } }, "profile": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Root", "type": "object", "properties": { "age": { "type": "integer" }, "city": { "type": "string" } }, "required": [ "age", "city" ] } }, "required": [ "id", "username", "email", "active", "score", "roles", "profile" ] }
相关工具
JSON Schema 生成器 v2
JSON 验证器
JSON 转 TypeScript
JSON 格式化工具
关于此工具
从JSON数据自动生成JSON Schema。用于API文档和验证设计。