Assertion
Defined in: checks/checks.ts:24
One check on an API response: read source, compare it with target.
Properties
Section titled “Properties”comparison
Section titled “comparison”comparison:
AssertionComparison
Defined in: checks/checks.ts:28
How to compare the value with target.
property?
Section titled “property?”
optionalproperty?:string
Defined in: checks/checks.ts:30
JSON path / header name the assertion reads — required for JSON_BODY and HEADERS.
regex?
Section titled “regex?”
optionalregex?:string
Defined in: checks/checks.ts:34
A regular expression Checkly applies to the value before comparing.
source
Section titled “source”source:
AssertionSource
Defined in: checks/checks.ts:26
What part of the response to read.
target?
Section titled “target?”
optionaltarget?:string
Defined in: checks/checks.ts:32
The value to compare against.