Support remote references. Most of the machinery was in place; we just had to define the right loader, copy files from the test repo, and download the meta-schema files from json-schema.org. Change-Id: Ib588200ef0fa483641b9b53f9904f53b39dc4b82 Reviewed-on: https://go-review.googlesource.com/c/tools/+/670795 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://json-schema.org/draft/2020-12/meta/core",
|
|
"$dynamicAnchor": "meta",
|
|
|
|
"title": "Core vocabulary meta-schema",
|
|
"type": ["object", "boolean"],
|
|
"properties": {
|
|
"$id": {
|
|
"$ref": "#/$defs/uriReferenceString",
|
|
"$comment": "Non-empty fragments not allowed.",
|
|
"pattern": "^[^#]*#?$"
|
|
},
|
|
"$schema": { "$ref": "#/$defs/uriString" },
|
|
"$ref": { "$ref": "#/$defs/uriReferenceString" },
|
|
"$anchor": { "$ref": "#/$defs/anchorString" },
|
|
"$dynamicRef": { "$ref": "#/$defs/uriReferenceString" },
|
|
"$dynamicAnchor": { "$ref": "#/$defs/anchorString" },
|
|
"$vocabulary": {
|
|
"type": "object",
|
|
"propertyNames": { "$ref": "#/$defs/uriString" },
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"$comment": {
|
|
"type": "string"
|
|
},
|
|
"$defs": {
|
|
"type": "object",
|
|
"additionalProperties": { "$dynamicRef": "#meta" }
|
|
}
|
|
},
|
|
"$defs": {
|
|
"anchorString": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
|
|
},
|
|
"uriString": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"uriReferenceString": {
|
|
"type": "string",
|
|
"format": "uri-reference"
|
|
}
|
|
}
|
|
}
|