Skip to content

Commit 03752e2

Browse files
committed
update documentation url
1 parent ade8771 commit 03752e2

File tree

4 files changed

+36
-32
lines changed

4 files changed

+36
-32
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.7 Released on 2022-07-21
4+
5+
- update documentation url.
6+
37
## 0.9.6 Released on 2022-06-09
48

59
- using autorest v3.6.1'.

openapi-diff/src/modeler/AutoRest.Swagger/ComparisonMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace AutoRest.Swagger
1616
/// </summary>
1717
public class ComparisonMessage
1818
{
19-
public static string DocBaseUrl = "https://github.com/Azure/openapi-diff/tree/master/docs/rules/";
19+
public static string DocBaseUrl = "https://github.com/Azure/openapi-diff/tree/main/docs/rules/";
2020

2121
public ComparisonMessage(
2222
MessageTemplate template,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/oad",
3-
"version": "0.9.6",
3+
"version": "0.9.7",
44
"author": {
55
"name": "Microsoft Corporation",
66
"email": "[email protected]",

src/test/test.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("index", () => {
1818
const expected = [
1919
{
2020
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",
2222
id: "1001",
2323
message: "The versions have not changed.",
2424
mode: "Update",
@@ -48,7 +48,7 @@ describe("index", () => {
4848
const expected = [
4949
{
5050
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",
5252
id: "1001",
5353
message: "The versions have not changed.",
5454
mode: "Update",
@@ -66,7 +66,7 @@ describe("index", () => {
6666
},
6767
{
6868
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",
7070
id: "1038",
7171
message: "The new version is adding a path that was not found in the old version.",
7272
mode: "Addition",
@@ -93,7 +93,7 @@ describe("index", () => {
9393
const expected = [
9494
{
9595
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",
9797
id: "1001",
9898
message: "The versions have not changed.",
9999
mode: "Update",
@@ -111,7 +111,7 @@ describe("index", () => {
111111
},
112112
{
113113
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",
115115
id: "1038",
116116
message: "The new version is adding a path that was not found in the old version.",
117117
mode: "Addition",
@@ -139,7 +139,7 @@ describe("index", () => {
139139
const expected = [
140140
{
141141
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",
143143
id: "1001",
144144
message: "The versions have not changed.",
145145
mode: "Update",
@@ -157,7 +157,7 @@ describe("index", () => {
157157
},
158158
{
159159
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",
161161
id: "1005",
162162
message: "The new version is missing a path that was found in the old version. Was path '/x' removed or restructured?",
163163
mode: "Removal",
@@ -222,7 +222,7 @@ describe("index", () => {
222222
const expected = [
223223
{
224224
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",
226226
id: "1001",
227227
message: "The versions have not changed.",
228228
mode: "Update",
@@ -240,7 +240,7 @@ describe("index", () => {
240240
},
241241
{
242242
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",
244244
id: "1046",
245245
message: "The optional parameter 'p1' was removed in the new version.",
246246
mode: "Removal",
@@ -254,7 +254,7 @@ describe("index", () => {
254254
},
255255
{
256256
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",
258258
id: "1043",
259259
message: "The optional parameter 'p2' was added in the new version.",
260260
mode: "Addition",
@@ -268,7 +268,7 @@ describe("index", () => {
268268
},
269269
{
270270
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",
272272
id: "1007",
273273
message: "The new version is missing a client parameter that was found in the old version. Was 'P1' removed or renamed?",
274274
mode: "Removal",
@@ -299,7 +299,7 @@ describe("index", () => {
299299
const expected = [
300300
{
301301
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",
303303
id: "1001",
304304
message: "The versions have not changed.",
305305
mode: "Update",
@@ -342,7 +342,7 @@ describe("index", () => {
342342
location: `${newFilePath}:1:1`
343343
},
344344
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",
346346
mode: "Update"
347347
},
348348
{
@@ -360,7 +360,7 @@ describe("index", () => {
360360
location: `${newFilePath}:22:13`
361361
},
362362
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",
364364
mode: "Update"
365365
},
366366
{
@@ -378,7 +378,7 @@ describe("index", () => {
378378
location: `${newFilePath}:41:9`
379379
},
380380
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",
382382
mode: "Update"
383383
},
384384
{
@@ -396,7 +396,7 @@ describe("index", () => {
396396
location: `${newFilePath}:41:9`
397397
},
398398
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",
400400
mode: "Update"
401401
},
402402
{
@@ -414,12 +414,12 @@ describe("index", () => {
414414
location: `${newFilePath}:22:13`
415415
},
416416
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",
418418
mode: "Addition"
419419
},
420420
{
421421
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",
423423
id: "1032",
424424
message: "The new version has a different 'allOf' property than the previous one.",
425425
mode: "Update",
@@ -450,7 +450,7 @@ describe("index", () => {
450450
location: `${newFilePath}:34:5`
451451
},
452452
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",
454454
mode: "Addition"
455455
}
456456
]
@@ -480,7 +480,7 @@ describe("index", () => {
480480
location: `${newFilePath}:1:1`
481481
},
482482
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",
484484
mode: "Update"
485485
},
486486
{
@@ -498,12 +498,12 @@ describe("index", () => {
498498
location: `${newFilePath}:24:13`
499499
},
500500
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",
502502
mode: "Update"
503503
},
504504
{
505505
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",
507507
id: "1032",
508508
message: "The new version has a different 'allOf' property than the previous one.",
509509
mode: "Update",
@@ -546,7 +546,7 @@ describe("index", () => {
546546
location: `${newFilePath}:1:1`
547547
},
548548
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",
550550
mode: "Update"
551551
},
552552
{
@@ -564,12 +564,12 @@ describe("index", () => {
564564
location: `${newFilePath}:24:13`
565565
},
566566
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",
568568
mode: "Update"
569569
},
570570
{
571571
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",
573573
id: "1032",
574574
message: "The new version has a different 'allOf' property than the previous one.",
575575
mode: "Update",
@@ -612,7 +612,7 @@ describe("index", () => {
612612
location: `${newFilePath}:1:1`
613613
},
614614
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",
616616
mode: "Update"
617617
},
618618
{
@@ -630,12 +630,12 @@ describe("index", () => {
630630
location: `${newFilePath}:24:13`
631631
},
632632
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",
634634
mode: "Update"
635635
},
636636
{
637637
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",
639639
id: "1032",
640640
message: "The new version has a different 'allOf' property than the previous one.",
641641
mode: "Update",
@@ -679,7 +679,7 @@ describe("index", () => {
679679
location: `${newFilePath}:7:3`
680680
},
681681
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"
683683
}
684684
]
685685
assert.deepStrictEqual(result, expected)
@@ -709,7 +709,7 @@ describe("index", () => {
709709
location: `${newFilePath}:7:3`
710710
},
711711
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"
713713
}
714714
]
715715
assert.deepStrictEqual(result, expected)

0 commit comments

Comments
 (0)