]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/s3select/rapidjson/bin/jsonschema/tests/draft3/minimum.json
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / s3select / rapidjson / bin / jsonschema / tests / draft3 / minimum.json
diff --git a/ceph/src/s3select/rapidjson/bin/jsonschema/tests/draft3/minimum.json b/ceph/src/s3select/rapidjson/bin/jsonschema/tests/draft3/minimum.json
new file mode 100644 (file)
index 0000000..d5bf000
--- /dev/null
@@ -0,0 +1,42 @@
+[
+    {
+        "description": "minimum validation",
+        "schema": {"minimum": 1.1},
+        "tests": [
+            {
+                "description": "above the minimum is valid",
+                "data": 2.6,
+                "valid": true
+            },
+            {
+                "description": "below the minimum is invalid",
+                "data": 0.6,
+                "valid": false
+            },
+            {
+                "description": "ignores non-numbers",
+                "data": "x",
+                "valid": true
+            }
+        ]
+    },
+    {
+        "description": "exclusiveMinimum validation",
+        "schema": {
+            "minimum": 1.1,
+            "exclusiveMinimum": true
+        },
+        "tests": [
+            {
+                "description": "above the minimum is still valid",
+                "data": 1.2,
+                "valid": true
+            },
+            {
+                "description": "boundary point is invalid",
+                "data": 1.1,
+                "valid": false
+            }
+        ]
+    }
+]