json-ref

Liquid Studio: How to write a JSON schema $ref to another file

六月ゝ 毕业季﹏ 提交于 2019-12-12 13:44:34
问题 I'm trying to refer to a JSON schema located in a different file using "$ref" with Liquid Studio 2017. Both the referring JSON schema and the referred JSON schema are located within the same directory. I tried it using relative paths: "$ref": "referredSchema.json/propertyName" and using absolute paths: "$ref": "file:///C:/JSON/referredSchema.json/propertyName" "$ref": "file:///JSON/referredSchema.json/propertyName" "$ref": "file:///JSON/referredSchema.json#/propertyName" and a few other

json schema property description and “$ref” usage

做~自己de王妃 提交于 2019-12-08 16:21:05
问题 I am writting a json schema to validate my json outputs produced by an exe.The schema being little bit complexe, I have defined some "definitions" that are referenced in properties ("$ref": "#/definitions/...). And using definitions here is all the more important because I have a case where the definition is recursive. My schema now works well, it validates correctly my json outputs. Now, I am trying to document the schema correctly using "description" keyword for each property. To develop