Tools, FAQ, Tutorials:
References to JSON Types Defined Externally
How to reference a JSON type that is defined externally in another JSON Schema?
✍: FYIcenter.com
If a JSON type is defined externally in another JSON schema, you can reference it using its absolute address.
For example, the following JSON schema has two external references. One refers to a JSON Type defined in a local JSON schema file. Another refers to a JSON Type defined in remote Web site.
{ "type": "object", "properties": { "clarity": { "$ref": "Rating.json#/definitions/rating" }, "score": { "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" } } }
⇒ JSON Type Unique Identifications
2017-08-25, 1715🔥, 0💬
Popular Posts:
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...
How to use the "return-response" Policy statement to build the response from scratch for an Azure AP...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...