假设我有一个名为child.json文件. 在
“$ref”:文件:child.json“会有用的
“$ref”:文件:./child.json“会有用的
这是唯一对我有用的相对路径。我正在使用python验证器:http://sacharya.com/validating-json-using-python-jsonschema/
我的问题是:如果我有3个模式:爷爷.json, 父级.json,和child.json文件;爷爷指的是使用“$ref”的家长:文件:parent.json和父项使用“$ref”引用子项:文件:child.json。那么上面的相对路径就不起作用了
以@jruizarangureni链接的github issue为基础,得到了如下结果:
相关问题 更多 >
编程相关推荐