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, ∼2075🔥, 0💬
Popular Posts:
How To Access a Global Variable inside a Function? in PHP? By default, global variables are not acce...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How to use the "return-response" Policy statement to build the response from scratch for an Azure AP...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...