@@ -18,7 +18,7 @@ describe("index", () => {
18
18
const expected = [
19
19
{
20
20
code : "NoVersionChange" ,
21
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
21
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
22
22
id : "1001" ,
23
23
message : "The versions have not changed." ,
24
24
mode : "Update" ,
@@ -48,7 +48,7 @@ describe("index", () => {
48
48
const expected = [
49
49
{
50
50
code : "NoVersionChange" ,
51
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
51
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
52
52
id : "1001" ,
53
53
message : "The versions have not changed." ,
54
54
mode : "Update" ,
@@ -66,7 +66,7 @@ describe("index", () => {
66
66
} ,
67
67
{
68
68
code : "AddedPath" ,
69
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1038.md" ,
69
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1038.md" ,
70
70
id : "1038" ,
71
71
message : "The new version is adding a path that was not found in the old version." ,
72
72
mode : "Addition" ,
@@ -93,7 +93,7 @@ describe("index", () => {
93
93
const expected = [
94
94
{
95
95
code : "NoVersionChange" ,
96
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
96
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
97
97
id : "1001" ,
98
98
message : "The versions have not changed." ,
99
99
mode : "Update" ,
@@ -111,7 +111,7 @@ describe("index", () => {
111
111
} ,
112
112
{
113
113
code : "AddedPath" ,
114
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1038.md" ,
114
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1038.md" ,
115
115
id : "1038" ,
116
116
message : "The new version is adding a path that was not found in the old version." ,
117
117
mode : "Addition" ,
@@ -139,7 +139,7 @@ describe("index", () => {
139
139
const expected = [
140
140
{
141
141
code : "NoVersionChange" ,
142
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
142
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
143
143
id : "1001" ,
144
144
message : "The versions have not changed." ,
145
145
mode : "Update" ,
@@ -157,7 +157,7 @@ describe("index", () => {
157
157
} ,
158
158
{
159
159
code : "RemovedPath" ,
160
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1005.md" ,
160
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1005.md" ,
161
161
id : "1005" ,
162
162
message : "The new version is missing a path that was found in the old version. Was path '/x' removed or restructured?" ,
163
163
mode : "Removal" ,
@@ -222,7 +222,7 @@ describe("index", () => {
222
222
const expected = [
223
223
{
224
224
code : "NoVersionChange" ,
225
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
225
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
226
226
id : "1001" ,
227
227
message : "The versions have not changed." ,
228
228
mode : "Update" ,
@@ -240,7 +240,7 @@ describe("index", () => {
240
240
} ,
241
241
{
242
242
code : "RemovedOptionalParameter" ,
243
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1046.md" ,
243
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1046.md" ,
244
244
id : "1046" ,
245
245
message : "The optional parameter 'p1' was removed in the new version." ,
246
246
mode : "Removal" ,
@@ -254,7 +254,7 @@ describe("index", () => {
254
254
} ,
255
255
{
256
256
code : "AddingOptionalParameter" ,
257
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1043.md" ,
257
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1043.md" ,
258
258
id : "1043" ,
259
259
message : "The optional parameter 'p2' was added in the new version." ,
260
260
mode : "Addition" ,
@@ -268,7 +268,7 @@ describe("index", () => {
268
268
} ,
269
269
{
270
270
code : "RemovedClientParameter" ,
271
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1007.md" ,
271
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1007.md" ,
272
272
id : "1007" ,
273
273
message : "The new version is missing a client parameter that was found in the old version. Was 'P1' removed or renamed?" ,
274
274
mode : "Removal" ,
@@ -299,7 +299,7 @@ describe("index", () => {
299
299
const expected = [
300
300
{
301
301
code : "NoVersionChange" ,
302
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
302
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
303
303
id : "1001" ,
304
304
message : "The versions have not changed." ,
305
305
mode : "Update" ,
@@ -342,7 +342,7 @@ describe("index", () => {
342
342
location : `${ newFilePath } :1:1`
343
343
} ,
344
344
type : "Info" ,
345
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
345
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
346
346
mode : "Update"
347
347
} ,
348
348
{
@@ -360,7 +360,7 @@ describe("index", () => {
360
360
location : `${ newFilePath } :22:13`
361
361
} ,
362
362
type : "Error" ,
363
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
363
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
364
364
mode : "Update"
365
365
} ,
366
366
{
@@ -378,7 +378,7 @@ describe("index", () => {
378
378
location : `${ newFilePath } :41:9`
379
379
} ,
380
380
type : "Error" ,
381
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1026.md" ,
381
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1026.md" ,
382
382
mode : "Update"
383
383
} ,
384
384
{
@@ -396,7 +396,7 @@ describe("index", () => {
396
396
location : `${ newFilePath } :41:9`
397
397
} ,
398
398
type : "Error" ,
399
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1023.md" ,
399
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1023.md" ,
400
400
mode : "Update"
401
401
} ,
402
402
{
@@ -414,12 +414,12 @@ describe("index", () => {
414
414
location : `${ newFilePath } :22:13`
415
415
} ,
416
416
type : "Error" ,
417
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1034.md" ,
417
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1034.md" ,
418
418
mode : "Addition"
419
419
} ,
420
420
{
421
421
code : "DifferentAllOf" ,
422
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
422
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
423
423
id : "1032" ,
424
424
message : "The new version has a different 'allOf' property than the previous one." ,
425
425
mode : "Update" ,
@@ -450,7 +450,7 @@ describe("index", () => {
450
450
location : `${ newFilePath } :34:5`
451
451
} ,
452
452
type : "Error" ,
453
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1034.md" ,
453
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1034.md" ,
454
454
mode : "Addition"
455
455
}
456
456
]
@@ -480,7 +480,7 @@ describe("index", () => {
480
480
location : `${ newFilePath } :1:1`
481
481
} ,
482
482
type : "Info" ,
483
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
483
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
484
484
mode : "Update"
485
485
} ,
486
486
{
@@ -498,12 +498,12 @@ describe("index", () => {
498
498
location : `${ newFilePath } :24:13`
499
499
} ,
500
500
type : "Error" ,
501
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
501
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
502
502
mode : "Update"
503
503
} ,
504
504
{
505
505
code : "DifferentAllOf" ,
506
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
506
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
507
507
id : "1032" ,
508
508
message : "The new version has a different 'allOf' property than the previous one." ,
509
509
mode : "Update" ,
@@ -546,7 +546,7 @@ describe("index", () => {
546
546
location : `${ newFilePath } :1:1`
547
547
} ,
548
548
type : "Info" ,
549
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
549
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
550
550
mode : "Update"
551
551
} ,
552
552
{
@@ -564,12 +564,12 @@ describe("index", () => {
564
564
location : `${ newFilePath } :24:13`
565
565
} ,
566
566
type : "Error" ,
567
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
567
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
568
568
mode : "Update"
569
569
} ,
570
570
{
571
571
code : "DifferentAllOf" ,
572
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
572
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
573
573
id : "1032" ,
574
574
message : "The new version has a different 'allOf' property than the previous one." ,
575
575
mode : "Update" ,
@@ -612,7 +612,7 @@ describe("index", () => {
612
612
location : `${ newFilePath } :1:1`
613
613
} ,
614
614
type : "Info" ,
615
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1001.md" ,
615
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1001.md" ,
616
616
mode : "Update"
617
617
} ,
618
618
{
@@ -630,12 +630,12 @@ describe("index", () => {
630
630
location : `${ newFilePath } :24:13`
631
631
} ,
632
632
type : "Error" ,
633
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
633
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
634
634
mode : "Update"
635
635
} ,
636
636
{
637
637
code : "DifferentAllOf" ,
638
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1032.md" ,
638
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1032.md" ,
639
639
id : "1032" ,
640
640
message : "The new version has a different 'allOf' property than the previous one." ,
641
641
mode : "Update" ,
@@ -679,7 +679,7 @@ describe("index", () => {
679
679
location : `${ newFilePath } :7:3`
680
680
} ,
681
681
type : "Warning" ,
682
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1003.md"
682
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1003.md"
683
683
}
684
684
]
685
685
assert . deepStrictEqual ( result , expected )
@@ -709,7 +709,7 @@ describe("index", () => {
709
709
location : `${ newFilePath } :7:3`
710
710
} ,
711
711
type : "Warning" ,
712
- docUrl : "https://github.com/Azure/openapi-diff/tree/master /docs/rules/1004.md"
712
+ docUrl : "https://github.com/Azure/openapi-diff/tree/main /docs/rules/1004.md"
713
713
}
714
714
]
715
715
assert . deepStrictEqual ( result , expected )
0 commit comments