grim/resticide

fix the httpbin-post-json test
develop
2016-07-09, Gary Kramlich
6b41b6067294
Parents 9fc35be92097
Children e6201d3414db
fix the httpbin-post-json test
--- a/tests/httpbin-post-json.json Sat Jul 09 12:58:01 2016 -0500
+++ b/tests/httpbin-post-json.json Sat Jul 09 13:05:38 2016 -0500
@@ -4,9 +4,9 @@
"path": "/post",
"method": "POST",
"json": {
- "foo": {"value": "abc", "type": "string"},
- "bar": {"value": "def"},
- "baz": {"value": "123"}
+ "foo": null,
+ "bar": 1,
+ "baz": true
},
"response": {
"statuscode": 200,
@@ -15,7 +15,9 @@
"type": "object",
"additionalProperties": true,
"properties": {
- "data": {"enum": ["{\"bar\":{\"value\":\"def\"},\"baz\":{\"value\":\"123\"},\"foo\":{\"type\":\"string\",\"value\":\"abc\"}}"]}
+ "foo": {"enum": [null]},
+ "bar": {"enum": [1]},
+ "baz": {"enum": [true]}
},
"required": ["data"]
}