summaryrefslogtreecommitdiffstats
path: root/third_party/python/jsonschema/json/tests/draft4/definitions.json
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/jsonschema/json/tests/draft4/definitions.json')
-rw-r--r--third_party/python/jsonschema/json/tests/draft4/definitions.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/python/jsonschema/json/tests/draft4/definitions.json b/third_party/python/jsonschema/json/tests/draft4/definitions.json
new file mode 100644
index 0000000000..cf935a3215
--- /dev/null
+++ b/third_party/python/jsonschema/json/tests/draft4/definitions.json
@@ -0,0 +1,32 @@
+[
+ {
+ "description": "valid definition",
+ "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
+ "tests": [
+ {
+ "description": "valid definition schema",
+ "data": {
+ "definitions": {
+ "foo": {"type": "integer"}
+ }
+ },
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "invalid definition",
+ "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
+ "tests": [
+ {
+ "description": "invalid definition schema",
+ "data": {
+ "definitions": {
+ "foo": {"type": 1}
+ }
+ },
+ "valid": false
+ }
+ ]
+ }
+]