Skip to content

Commit 257f3ef

Browse files
authored
Add note about how the body is referenced (#33935)
1 parent 90ae556 commit 257f3ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ Supports also regular expressions with flag X for more readability (accepts whit
316316
\d+ \s+ \d{2}:\d{2}:\d{2} \s+ \d+ \s+ \n $/
317317
....
318318
319+
**Note:** `$body` is used to refer to the last obtained response body as a string, while `''` refers to the parsed representation (parsed into a Map by the Java runner for instance). Having the raw string response is for example useful when testing cat APIs.
320+
319321
=== `lt` and `gt`
320322
321323
Compares two numeric values, eg:

0 commit comments

Comments
 (0)