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, 1637🔥, 0💬
Popular Posts:
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1....
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary d...
How To Pass Arrays By References? in PHP? Like normal variables, you can pass an array by reference ...
How to create a new API on the Publisher Dashboard of an Azure API Management Service? If you are ne...
How to create a new API on the Publisher Dashboard of an Azure API Management Service? If you are ne...