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, ∼2154🔥, 0💬
Popular Posts:
How to use the built-in "context" object in Policy expressions? The built-in "context" object can be...
How To Convert a Character to an ASCII Value? If you want to convert characters to ASCII values, you...
Where can I download the EPUB 2.0 sample book "The Metamorphosis" by Franz Kafka? You can following ...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...