-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexpectation.yaml
More file actions
35 lines (34 loc) · 860 Bytes
/
expectation.yaml
File metadata and controls
35 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
id: expectation.json
"$schema": "http://json-schema.org/draft-04/schema"
title: Expectation
description: "An expectation on data."
type: object
properties:
path:
"$ref": "base.json#/definitions/JsonPath"
description: 'JSONPath to run messages data through. Result is passed to assertion predicate.'
# Different assertions operators
equals:
description: 'Strict equality'
above:
description: 'Greater than (>)'
type: number
below:
description: 'Less than than (<)'
type: number
type:
description: 'JSON type'
type: string
haveKeys:
description: 'Object has only these keys'
type: array
items:
type: string
includeKeys:
description: 'Object has at least these keys'
type: array
items:
type: string
contains:
description: 'String or array contains substring/item'