Skip to content

Commit 8249e28

Browse files
committed
Fixed diff command package tests
Signed-off-by: Jason Wraxall <wjase@yahoo.com.au>
1 parent 887bb86 commit 8249e28

File tree

3 files changed

+42
-35
lines changed

3 files changed

+42
-35
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
BREAKING CHANGES:
2-
=================
3-
/a/:get -> 200 Response - array[A1].personality : string - Added possible enumeration(s) <sane>
4-
/a/:get Request - Query.personality - Deleted possible enumeration(s) <saucy>
5-
/a/{id}:get -> 200 Response - array[A1].personality : string - Added possible enumeration(s) <sane>
6-
/b/:get -> 200 Response - array[A1].personality : string - Added possible enumeration(s) <sane>
7-
8-
compatibility test FAILED: 4 breaking changes detected
1+
BREAKING CHANGES:
2+
=================
3+
/a/:get - Request - Query.personality<string> - Deleted possible enumeration(s) - saucy
4+
/a/:get -> 200 - Response - Body<array[A1]>.personality<string> - Added possible enumeration(s) - sane
5+
/a/{id}:get -> 200 - Response - Body<array[A1]>.personality<string> - Added possible enumeration(s) - sane
6+
/b/:get -> 200 - Response - Body<array[A1]>.personality<string> - Added possible enumeration(s) - sane
7+
compatibility test FAILED: 4 breaking changes detected

diff/fixtures/ignoreDiffs.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
11
[
22
{
33
"location": {
4-
"url": "/b/",
4+
"url": "/a/",
55
"method": "get",
6-
"response": 200,
76
"node": {
8-
"type": "A1",
9-
"is_array": true,
7+
"name": "Query",
108
"child": {
119
"name": "personality",
1210
"type": "string"
1311
}
1412
}
1513
},
1614
"code": "AddedEnumValue",
17-
"compatibility": "Breaking",
18-
"info": "sane"
15+
"compatibility": "NonBreaking",
16+
"info": "extrovert"
1917
},
2018
{
2119
"location": {
22-
"url": "/b/",
20+
"url": "/a/",
2321
"method": "get",
24-
"response": 200,
2522
"node": {
26-
"type": "A1",
27-
"is_array": true,
23+
"name": "Query",
2824
"child": {
2925
"name": "personality",
3026
"type": "string"
3127
}
3228
}
3329
},
3430
"code": "DeletedEnumValue",
35-
"compatibility": "NonBreaking",
36-
"info": "crazy"
31+
"compatibility": "Breaking",
32+
"info": "saucy"
3733
}
38-
]
3934

35+
]

diff/fixtures/ignoreFile.json

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,49 @@
11
[
22
{
33
"location": {
4-
"url": "/a/",
4+
"url": "/a/{id}",
55
"method": "get",
6+
"response": 200,
67
"node": {
7-
"name": "Query",
8+
"name": "Body",
9+
"type": "A1",
10+
"is_array": true,
811
"child": {
9-
"name": "personality"
12+
"name": "personality",
13+
"type": "string"
1014
}
1115
}
1216
},
1317
"code": "AddedEnumValue",
14-
"compatibility": "NonBreaking",
15-
"info": "extrovert"
18+
"compatibility": "Breaking",
19+
"info": "sane"
1620
},
1721
{
1822
"location": {
19-
"url": "/a/",
23+
"url": "/a/{id}",
2024
"method": "get",
25+
"response": 200,
2126
"node": {
22-
"name": "Query",
27+
"name": "Body",
28+
"type": "A1",
29+
"is_array": true,
2330
"child": {
24-
"name": "personality"
31+
"name": "personality",
32+
"type": "string"
2533
}
2634
}
2735
},
2836
"code": "DeletedEnumValue",
29-
"compatibility": "Breaking",
30-
"info": "saucy"
37+
"compatibility": "NonBreaking",
38+
"info": "crazy"
3139
},
3240
{
3341
"location": {
34-
"url": "/a/",
42+
"url": "/b/",
3543
"method": "get",
3644
"response": 200,
3745
"node": {
46+
"name": "Body",
3847
"type": "A1",
3948
"is_array": true,
4049
"child": {
@@ -49,10 +58,11 @@
4958
},
5059
{
5160
"location": {
52-
"url": "/a/",
61+
"url": "/b/",
5362
"method": "get",
5463
"response": 200,
5564
"node": {
65+
"name": "Body",
5666
"type": "A1",
5767
"is_array": true,
5868
"child": {
@@ -67,10 +77,11 @@
6777
},
6878
{
6979
"location": {
70-
"url": "/a/{id}",
80+
"url": "/a/",
7181
"method": "get",
7282
"response": 200,
7383
"node": {
84+
"name": "Body",
7485
"type": "A1",
7586
"is_array": true,
7687
"child": {
@@ -85,10 +96,11 @@
8596
},
8697
{
8798
"location": {
88-
"url": "/a/{id}",
99+
"url": "/a/",
89100
"method": "get",
90101
"response": 200,
91102
"node": {
103+
"name": "Body",
92104
"type": "A1",
93105
"is_array": true,
94106
"child": {

0 commit comments

Comments
 (0)