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, ∼3277🔥, 0💬
Popular Posts:
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...