【发布时间】:2014-11-21 11:26:29
【问题描述】:
我想要一个包含多个定义的架构文件。
然后我想根据该架构内的不同定义验证消息。
有没有办法用 JSON Schema 做到这一点?
我正在尝试两个 NodeJS 验证器,看看哪个效果最好: https://github.com/geraintluff/tv4 和https://github.com/tdegrunt/jsonschema
抱歉,如果这在逻辑上不可行 - 我是 JSON Schema 的新手。
交叉发布到https://github.com/geraintluff/tv4/issues/170 和https://github.com/tdegrunt/jsonschema/issues/94
【问题讨论】:
标签: json node.js jsonschema json-schema-validator