小编hou*_*nce的帖子

Liquid Studio:如何将JSON模式$ ref写入另一个文件

我试图在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格式是什么。

json liquid-xml json-ref

3
推荐指数
1
解决办法
7073
查看次数

标签 统计

json ×1

json-ref ×1

liquid-xml ×1