From 76394943ce085b9aff72d1332f771bb15d96ee1c Mon Sep 17 00:00:00 2001 From: jcamiel Date: Wed, 10 Apr 2024 11:04:27 +0200 Subject: [PATCH] Add doc for isNumber predicate. --- docs/asserting-response.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/asserting-response.md b/docs/asserting-response.md index 25c8502bf..9db939da4 100644 --- a/docs/asserting-response.md +++ b/docs/asserting-response.md @@ -182,10 +182,11 @@ Predicates consist of a predicate function and a predicate value. Predicate func | __`exists`__ | Query returns a value | `jsonpath "$.book" exists` | | __`isBoolean`__ | Query returns a boolean | `jsonpath "$.succeeded" isBoolean` | | __`isCollection`__ | Query returns a collection | `jsonpath "$.books" isCollection` | -| __`isIsoDate`__ | Query string returns a [RFC 3339] date (`YYYY-MM-DDTHH:mm:ss.sssZ`) | `jsonpath "$.publication_date" isIsoDate` | | __`isEmpty`__ | Query returns an empty collection | `jsonpath "$.movies" isEmpty` | | __`isFloat`__ | Query returns a float | `jsonpath "$.height" isFloat` | | __`isInteger`__ | Query returns an integer | `jsonpath "$.count" isInteger` | +| __`isIsoDate`__ | Query string returns a [RFC 3339] date (`YYYY-MM-DDTHH:mm:ss.sssZ`) | `jsonpath "$.publication_date" isIsoDate` | +| __`isNumber`__ | Query returns an integer or a float | `jsonpath "$.count" isNumber` | | __`isString`__ | Query returns a string | `jsonpath "$.name" isString` |