我们有这个json架构草案.我想得到我的JSON数据样本并为JSON模式生成一个框架,我可以手动返工,添加描述,必需等内容,这些内容不能从具体示例中获取.
例如,从我的输入example.json:
{
"foo": "lorem",
"bar": "ipsum"
}
Run Code Online (Sandbox Code Playgroud)
我会运行我的json_schema_generator工具,并得到:
{ "foo": {
"type" : "string",
"required" : true,
"description" : "unknown"
},
"bar": {
"type" : "string",
"required" : true,
"description" : "unknown"
}
}
Run Code Online (Sandbox Code Playgroud)
此示例已手动编码,因此可能存在错误.是否有任何工具可以帮助我转换JSON - > JSON模式?