Skip to content

Assertion

Defined in: checks/checks.ts:24

One check on an API response: read source, compare it with target.

comparison: AssertionComparison

Defined in: checks/checks.ts:28

How to compare the value with target.


optional property?: string

Defined in: checks/checks.ts:30

JSON path / header name the assertion reads — required for JSON_BODY and HEADERS.


optional regex?: string

Defined in: checks/checks.ts:34

A regular expression Checkly applies to the value before comparing.


source: AssertionSource

Defined in: checks/checks.ts:26

What part of the response to read.


optional target?: string

Defined in: checks/checks.ts:32

The value to compare against.