1 | {
|
2 | "id": "expectation.json",
|
3 | "$schema": "http://json-schema.org/draft-04/schema",
|
4 | "title": "Expectation",
|
5 | "description": "An expectation on data.",
|
6 | "type": "object",
|
7 | "properties": {
|
8 | "path": {
|
9 | "$ref": "base.json#/definitions/JsonPath",
|
10 | "description": "JSONPath to run messages data through. Result is passed to assertion predicate."
|
11 | },
|
12 | "equals": {
|
13 | "description": "Strict equality"
|
14 | },
|
15 | "above": {
|
16 | "description": "Greater than (>)",
|
17 | "type": "number"
|
18 | },
|
19 | "below": {
|
20 | "description": "Less than than (<)",
|
21 | "type": "number"
|
22 | },
|
23 | "type": {
|
24 | "description": "JSON type",
|
25 | "type": "string"
|
26 | },
|
27 | "haveKeys": {
|
28 | "description": "Object has only these keys",
|
29 | "type": "array",
|
30 | "items": {
|
31 | "type": "string"
|
32 | }
|
33 | },
|
34 | "includeKeys": {
|
35 | "description": "Object has at least these keys",
|
36 | "type": "array",
|
37 | "items": {
|
38 | "type": "string"
|
39 | }
|
40 | },
|
41 | "contains": {
|
42 | "description": "String or array contains substring/item"
|
43 | }
|
44 | },
|
45 | "required": []
|
46 | } |
\ | No newline at end of file |