name = Missing Assertion Examples
description = Demonstrates the difference between explicit null values and missing JSON paths in assertions.
$ BASE = https://lorem-api.com/api
---
Echo Null And Missing Fields
POST {{ BASE }}/echo
~~~ application/json
{
"present": "value",
"nullable": null
}
~~~
# Request succeeds
^ & status == 200
# The field exists with an explicit null value
^ & body.nullable == null
# The field was omitted entirely
^ & body.archivedAt == missing
# Present fields are not missing
^ & body.present != missing