我试图在Liquid Studio 2017中使用“ $ ref”来引用位于不同文件中的JSON模式。引用的JSON模式和引用的JSON模式都位于同一目录中。
我尝试使用相对路径:
"$ref": "referredSchema.json/propertyName"
Run Code Online (Sandbox Code Playgroud)
并使用绝对路径:
"$ref": "file:///C:/JSON/referredSchema.json/propertyName"
"$ref": "file:///JSON/referredSchema.json/propertyName"
"$ref": "file:///JSON/referredSchema.json#/propertyName"
Run Code Online (Sandbox Code Playgroud)
和其他一些变化。它们都不起作用,我总是收到错误消息“无效的URI”。此外,文档仅提及在没有给出合理示例的情况下可以引用其他文档。
所以我想知道预期的URI格式是什么。