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, ∼2866🔥, 0💬
Popular Posts:
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...
What is Azure API Management Gateway? Azure API Management Gateway is the Azure Web server that serv...
Why I am getting "LNK1104: cannot open file 'MSCOREE.lib'" error when building a C++/CLI program? Vi...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...