==, you can omit it: expect status 200 is shorthand for expect status == 200.
Equality and Comparison (6 operators)
Numeric comparison coerces strings to numbers when possible.
"42" and 42 are considered equal by ==.String Operators (5 operators)
Regular expressions use Go’s
regexp syntax and are enclosed in forward slashes: /pattern/.Existence and Type (3 operators)
Supported type values:
null, boolean, number, string, array, object.
Length Operators (5 operators)
Works on strings, arrays, and objects (counts keys).
Array Operators (5 operators)
includes / !includes
Checks whether an array contains (or does not contain) a specific value:in / !in
Checks whether a scalar value is a member of a set. List values in square brackets:each
Applies an assertion to every element in an array. Useful for validating list shapes:each with an operator/value map:
Schema and Snapshot (2 operators)
schema
Validates the response body against a JSON Schema file. File paths are relative to the.http file.