|
1 | 1 | [ |
| 2 | + { |
| 3 | + "code": "response.header.undefined", |
| 4 | + "message": "Standard http response header is not defined in the spec file: content-length", |
| 5 | + "mockDetails": { |
| 6 | + "interactionDescription": "should pass with 204 status, ignoring content-length and content-type", |
| 7 | + "interactionState": "[none]", |
| 8 | + "location": "[root].interactions[2].response.headers.content-length", |
| 9 | + "value": "0" |
| 10 | + }, |
| 11 | + "specDetails": { |
| 12 | + "location": "[root].paths./delete.delete.responses.204", |
| 13 | + "pathMethod": "delete", |
| 14 | + "pathName": "/delete", |
| 15 | + "value": { |
| 16 | + "description": "OK", |
| 17 | + "content": {} |
| 18 | + } |
| 19 | + }, |
| 20 | + "type": "warning" |
| 21 | + }, |
| 22 | + { |
| 23 | + "code": "response.content-type.unknown", |
| 24 | + "message": "Response Content-Type header is defined but the spec does not specify any mime-types to produce", |
| 25 | + "mockDetails": { |
| 26 | + "interactionDescription": "should pass with 204 status, ignoring content-length and content-type", |
| 27 | + "interactionState": "[none]", |
| 28 | + "location": "[root].interactions[2].response.headers.content-type", |
| 29 | + "value": "text/plain" |
| 30 | + }, |
| 31 | + "specDetails": { |
| 32 | + "location": "[root].paths./delete.delete", |
| 33 | + "pathMethod": "delete", |
| 34 | + "pathName": "/delete", |
| 35 | + "value": { |
| 36 | + "responses": { |
| 37 | + "204": { |
| 38 | + "description": "OK", |
| 39 | + "content": {} |
| 40 | + } |
| 41 | + } |
| 42 | + } |
| 43 | + }, |
| 44 | + "type": "warning" |
| 45 | + }, |
2 | 46 | { |
3 | 47 | "code": "response.header.undefined", |
4 | 48 | "message": "Standard http response header is not defined in the spec file: age", |
5 | 49 | "mockDetails": { |
6 | 50 | "interactionDescription": "should warn about missing standard response headers", |
7 | 51 | "interactionState": "[none]", |
8 | | - "location": "[root].interactions[2].response.headers.age", |
| 52 | + "location": "[root].interactions[3].response.headers.age", |
9 | 53 | "value": "60" |
10 | 54 | }, |
11 | 55 | "specDetails": { |
|
41 | 85 | "mockDetails": { |
42 | 86 | "interactionDescription": "should error on incompatible response headers", |
43 | 87 | "interactionState": "[none]", |
44 | | - "location": "[root].interactions[3].response.headers.specified", |
| 88 | + "location": "[root].interactions[4].response.headers.specified", |
45 | 89 | "value": "abc" |
46 | 90 | }, |
47 | 91 | "specDetails": { |
|
62 | 106 | "mockDetails": { |
63 | 107 | "interactionDescription": "should error on unspecified response headers", |
64 | 108 | "interactionState": "[none]", |
65 | | - "location": "[root].interactions[4].response.headers.unspecified", |
| 109 | + "location": "[root].interactions[5].response.headers.unspecified", |
66 | 110 | "value": "foo" |
67 | 111 | }, |
68 | 112 | "specDetails": { |
|
98 | 142 | "mockDetails": { |
99 | 143 | "interactionDescription": "should error on unknown response content type", |
100 | 144 | "interactionState": "[none]", |
101 | | - "location": "[root].interactions[5].response.headers.Content-Type", |
| 145 | + "location": "[root].interactions[6].response.headers.Content-Type", |
102 | 146 | "value": "text/html" |
103 | 147 | }, |
104 | 148 | "specDetails": { |
|
0 commit comments