summaryrefslogtreecommitdiffstats
path: root/third_party/python/jsonschema/json/test-schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/jsonschema/json/test-schema.json')
-rw-r--r--third_party/python/jsonschema/json/test-schema.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/third_party/python/jsonschema/json/test-schema.json b/third_party/python/jsonschema/json/test-schema.json
new file mode 100644
index 0000000000..670d2804cb
--- /dev/null
+++ b/third_party/python/jsonschema/json/test-schema.json
@@ -0,0 +1,59 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "definitions": {
+ "outputItem": {
+ "type": "object",
+ "properties": {
+ "valid": {"type": "boolean"},
+ "keywordLocation": {"type": "string"},
+ "absoluteKeywordLocation": {
+ "type": "string",
+ "format": "uri"
+ },
+ "instanceLocation": {"type": "string"},
+ "annotations": {
+ "type": "array",
+ "items": {"$ref": "#/definitions/outputItem"}
+ },
+ "errors": {
+ "type": "array",
+ "items": {"$ref": "#/definitions/outputItem"}
+ }
+ }
+ }
+ },
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": ["description", "schema", "tests"],
+ "properties": {
+ "description": {"type": "string"},
+ "schema": {},
+ "tests": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": ["description", "data", "valid"],
+ "properties": {
+ "description": {"type": "string"},
+ "data": {},
+ "valid": {"type": "boolean"},
+ "output": {
+ "type": "object",
+ "properties": {
+ "basic": {"$ref": "#/definitions/outputItem"},
+ "detailed": {"$ref": "#/definitions/outputItem"},
+ "verbose": {"$ref": "#/definitions/outputItem"}
+ },
+ "required": ["basic", "detailed", "verbose"]
+ }
+ },
+ "additionalProperties": false
+ },
+ "minItems": 1
+ }
+ },
+ "additionalProperties": false,
+ "minItems": 1
+ }
+}