Version 1
[yaffs-website] / node_modules / is-my-json-valid / test / json-schema-draft4 / nullAndObject.json
diff --git a/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json b/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json
new file mode 100644 (file)
index 0000000..c65c02c
--- /dev/null
@@ -0,0 +1,18 @@
+[
+  {
+    "description": "multiple types of null and object containing properties",
+    "schema": {
+      "type": ["null", "object"],
+      "properties": {
+        "foo": {}
+      }
+    },
+    "tests": [
+      {
+        "description": "null is valid",
+        "data": null,
+        "valid": true
+      }
+    ]
+  }
+]