Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Body provides a bit more flexibility on what body to expect in this response.
| is | string | yes | | What content of the body (or selector content) to expect |
| selector | string | no | - | A selector to get part of the body. The underlying implementation is using `gjson`, reference of syntax can be found [here](https://github.com/tidwall/gjson/blob/master/SYNTAX.md) |
| subset | bool | no | no | If the `is` block is a subset of the body (or selector content). See [examples](https://github.com/getapid/apid-cli/tree/master/testapi/tests). |
| keysOnly | bool | no | no | If values should be disregarded when checking for equality. All types of values except objects are ignored. Objects will still be recursively checked. See [examples](https://github.com/getapid/apid-cli/tree/master/testapi/tests). |
| keys_only | bool | no | no | If values should be disregarded when checking for equality. All types of values except objects are ignored. Objects will still be recursively checked. See [examples](https://github.com/getapid/apid-cli/tree/master/testapi/tests). |

```yaml
expect:
Expand All @@ -239,7 +239,7 @@ expect:
}

- selector: name
keysOnly: true
keys_only: true
is: |
{
"first": "Something, but not Tom",
Expand All @@ -248,7 +248,7 @@ expect:

- selector: name
subset: true
keysOnly: true
keys_only: true
is: |
{
"first": "Something, but not Tom"
Expand Down