|
23 | 23 | expect(incompat_diff.incompatibilities) |
24 | 24 | .to eq(endpoints: ['post /b/', 'put /a/{}'], |
25 | 25 | request_params: { |
26 | | - 'get /a/' => ['missing request param: limit (type: integer)'], |
| 26 | + 'get /a/' => ['missing request param: limit (in: query, type: integer)'], |
27 | 27 | 'post /a/' => ['new required request param: extra'], |
28 | | - 'patch /a/{}' => ['missing request param: name (type: ["string", "null"])', |
29 | | - 'missing request param: obj/thing (type: integer)', |
30 | | - 'missing request param: str (type: string)' |
| 28 | + 'patch /a/{}' => ['missing request param: name (in: body, type: ["string", "null"])', |
| 29 | + 'missing request param: obj/thing (in: body, type: integer)', |
| 30 | + 'missing request param: str (in: body, type: string)' |
31 | 31 | ], |
32 | 32 | 'put /b/{}' => ['new required request param: extra'], |
33 | 33 | 'post /c/' => ['new required request param: existing/b'] }, |
34 | 34 | response_attributes: { |
35 | | - 'post /a/' => ['missing attribute from 200 response: description (type: string)'], |
36 | | - 'get /a/{}' => ['missing attribute from 200 response: description (type: string)'], |
37 | | - 'patch /a/{}' => ['missing attribute from 200 response: obj/thing (type: integer)', |
38 | | - 'missing attribute from 200 response: objs[]/thing (type: integer)'], |
39 | | - 'put /b/{}' => ['missing attribute from 200 response: description (type: string)'], |
40 | | - 'get /c/' => ['missing attribute from 200 response: []/name (type: string)', |
| 35 | + 'post /a/' => ['missing attribute from 200 response: description (in: body, type: string)'], |
| 36 | + 'get /a/{}' => ['missing attribute from 200 response: description (in: body, type: string)'], |
| 37 | + 'patch /a/{}' => ['missing attribute from 200 response: obj/thing (in: body, type: integer)', |
| 38 | + 'missing attribute from 200 response: objs[]/thing (in: body, type: integer)'], |
| 39 | + 'put /b/{}' => ['missing attribute from 200 response: description (in: body, type: string)'], |
| 40 | + 'get /c/' => ['missing attribute from 200 response: []/name (in: body, type: string)', |
41 | 41 | 'missing 201 response'] }) |
42 | 42 | end |
43 | 43 |
|
|
48 | 48 | - put /a/{} |
49 | 49 | - incompatible request params |
50 | 50 | - get /a/ |
51 | | - - missing request param: limit (type: integer) |
| 51 | + - missing request param: limit (in: query, type: integer) |
52 | 52 | - patch /a/{} |
53 | | - - missing request param: name (type: ["string", "null"]) |
54 | | - - missing request param: obj/thing (type: integer) |
55 | | - - missing request param: str (type: string) |
| 53 | + - missing request param: name (in: body, type: ["string", "null"]) |
| 54 | + - missing request param: obj/thing (in: body, type: integer) |
| 55 | + - missing request param: str (in: body, type: string) |
56 | 56 | - post /a/ |
57 | 57 | - new required request param: extra |
58 | 58 | - post /c/ |
|
61 | 61 | - new required request param: extra |
62 | 62 | - incompatible response attributes |
63 | 63 | - get /a/{} |
64 | | - - missing attribute from 200 response: description (type: string) |
| 64 | + - missing attribute from 200 response: description (in: body, type: string) |
65 | 65 | - get /c/ |
66 | | - - missing attribute from 200 response: []/name (type: string) |
| 66 | + - missing attribute from 200 response: []/name (in: body, type: string) |
67 | 67 | - missing 201 response |
68 | 68 | - patch /a/{} |
69 | | - - missing attribute from 200 response: obj/thing (type: integer) |
70 | | - - missing attribute from 200 response: objs[]/thing (type: integer) |
| 69 | + - missing attribute from 200 response: obj/thing (in: body, type: integer) |
| 70 | + - missing attribute from 200 response: objs[]/thing (in: body, type: integer) |
71 | 71 | - post /a/ |
72 | | - - missing attribute from 200 response: description (type: string) |
| 72 | + - missing attribute from 200 response: description (in: body, type: string) |
73 | 73 | - put /b/{} |
74 | | - - missing attribute from 200 response: description (type: string) |
| 74 | + - missing attribute from 200 response: description (in: body, type: string) |
75 | 75 | ' |
76 | 76 | end |
77 | 77 |
|
|
0 commit comments