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, ∼2217🔥, 0💬
Popular Posts:
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...