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
36
37
38
39
40
41
42
43
44
--- remove-header-parameter.json
+++ patched
@@
"operationId": "with_header",
"parameters": [
{
- "in": "header",
- "name": "X-Request-Id",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
"in": "cookie",
"name": "session",
"required": false,
Result for patch:
[
Change {
paths: [
ChangePath {
old: [
"#/paths/~1with-header/get",
],
new: [
"#/paths/~1with-header/get",
],
comparison: Input,
},
],
changes: [
ChangeInfo {
old_subpath: "parameters/0",
new_subpath: "",
message: "The parameter 'X-Request-Id' was removed",
class: BackwardIncompatible,
details: Removed,
},
],
},
]