Data Validation
Use RESPONSE for strict matching or ASSERTS for flexible checks.
Strict response matching
php
--- RESPONSE ---
{
"status": "ok",
"user": { "id": "123" }
}Flexible assertions
php
--- ASSERTS ---
.status == "ok"
.user.id | type == "string"
.items | length > 0Inline comparison options
php
--- RESPONSE partial=true tolerance=0.1 unordered_arrays=true ---
{
"price": 9.99,
"tags": ["a", "b"]
}Notes:
OPTIONSsection supports runtime overrides (timeout,retry,retry-delay,no-retry)- Use
RESPONSE with_asserts=truewhen you need both response match and assertions