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" } } }
2017-08-25, 823👍, 0💬
Popular Posts:
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....