diff --git a/docs/BUILTIN.md b/docs/BUILTIN.md index 064bda60..47cb6195 100644 --- a/docs/BUILTIN.md +++ b/docs/BUILTIN.md @@ -6,16 +6,12 @@ HttpRunner+ validation should follow the following format. `check`, `assert` and ```json { - "check": "status_code", - // target field, usually used with jmespath - "assert": "equals", - // assertion method, you can use builtin method or custom defined function - "expect": 200, - // expected value - "msg": "check response status code" - // optional, print this message if assertion failed + "check": "status_code", // target field, usually used with jmespath + "assert": "equals", // assertion method, you can use builtin method or custom defined function + "expect": 200, // expected value + "msg": "check response status code" // optional, print this message if assertion failed } -``` +```g The `assert` method name will be mapped to a built-in function with the following function signature. diff --git a/examples/httpbingo_test.json b/examples/httpbingo_test.json index 5f1704b2..f61b007e 100644 --- a/examples/httpbingo_test.json +++ b/examples/httpbingo_test.json @@ -78,4 +78,4 @@ ] } ] -} \ No newline at end of file +}