File tree Expand file tree Collapse file tree 15 files changed +422
-19
lines changed Expand file tree Collapse file tree 15 files changed +422
-19
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ ## 0.10.0 Released on 2022-09-15
3
+
4
+ - Added rules: AddedXmsEnum,RemovedXmsEnum,XmsEnumChanged.
2
5
3
6
## 0.9.7 Released on 2022-08-15
4
7
Original file line number Diff line number Diff line change
1
+ ### 1047 - XmsEnumChanged
2
+
3
+ ** Description** : Checks whether the x-ms-enum 'name' or 'modelAsString' is changed.
4
+
5
+ ** Cause** : This is considered a breaking change.
6
+
7
+ ** Example** :
8
+ 1 . x-ms-enum modelAsString is changed from 'false' to 'true'.
9
+
10
+ Old specification
11
+ ``` json5
12
+ {
13
+ " type" : " string" ,
14
+ " description" : " Required. Indicates the type of account." ,
15
+ " enum" : [
16
+ " Storage" ,
17
+ " BlobStorage"
18
+ ],
19
+ " x-ms-enum" : {
20
+ " name" : " Kind" ,
21
+ " modelAsString" : false
22
+ }
23
+ }
24
+ ```
25
+
26
+ New specification
27
+ ``` json5
28
+ {
29
+ " type" : " string" ,
30
+ " description" : " Required. Indicates the type of account." ,
31
+ " enum" : [
32
+ " Storage" ,
33
+ " BlobStorage"
34
+ ],
35
+ " x-ms-enum" : {
36
+ " name" : " Kind" ,
37
+ " modelAsString" : true
38
+ }
39
+ }
40
+ ```
Original file line number Diff line number Diff line change
1
+ ### 1048 - AddedXmsEnum
2
+
3
+ ** Description** : Checks whether the x-ms-enum is added.
4
+
5
+ ** Cause** : This is considered a breaking change.
6
+
7
+ ** Example** :
8
+ 1 . x-ms-enum is added in the new specification.
9
+
10
+ Old specification
11
+ ``` json5
12
+ {
13
+ " type" : " string" ,
14
+ " description" : " Required. Indicates the type of account." ,
15
+ " enum" : [
16
+ " Storage" ,
17
+ " BlobStorage"
18
+ ],
19
+ }
20
+ ```
21
+
22
+ New specification
23
+ ``` json5
24
+ {
25
+ " type" : " string" ,
26
+ " description" : " Required. Indicates the type of account." ,
27
+ " enum" : [
28
+ " Storage" ,
29
+ " BlobStorage"
30
+ ],
31
+ " x-ms-enum" : {
32
+ " name" : " Kind" ,
33
+ " modelAsString" : true
34
+ }
35
+ }
36
+ ```
Original file line number Diff line number Diff line change
1
+ ### 1049 - RemovedXmsEnum
2
+
3
+ ** Description** : Checks whether the x-ms-enum is removed.
4
+
5
+ ** Cause** : This is considered a breaking change.
6
+
7
+ ** Example** :
8
+ 1 . x-ms-enum is removed in the new specification.
9
+
10
+ Old specification
11
+ ``` json5
12
+ {
13
+ " type" : " string" ,
14
+ " description" : " Required. Indicates the type of account." ,
15
+ " enum" : [
16
+ " Storage" ,
17
+ " BlobStorage"
18
+ ],
19
+ " x-ms-enum" : {
20
+ " name" : " Kind" ,
21
+ " modelAsString" : true
22
+ }
23
+ }
24
+ ```
25
+
26
+ New specification
27
+ ``` json5
28
+ {
29
+ " type" : " string" ,
30
+ " description" : " Required. Indicates the type of account." ,
31
+ " enum" : [
32
+ " Storage" ,
33
+ " BlobStorage"
34
+ ],
35
+ }
36
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
- "swagger" : 2.0 ,
2
+ "swagger" : " 2.0" ,
3
3
"info" : {
4
4
"title" : " operation_check_01" ,
5
5
"version" : " 1.0"
9
9
"paths" : {
10
10
"/api/Parameters" : {
11
11
"put" : {
12
- "tag " : [ " Parameters" ],
12
+ "tags " : [ " Parameters" ],
13
13
"operationId" : " Parameters_Put" ,
14
14
"produces" : [
15
15
" text/plain"
19
19
"name" : " database" ,
20
20
"in" : " body" ,
21
21
"required" : true ,
22
- "type" : " object" ,
23
22
"schema" : { "$ref" : " #/definitions/DatabaseRenamed" }
24
23
}
25
- ]
24
+ ],
25
+ "responses" : {}
26
26
},
27
27
"post" : {
28
- "tag " : [ " Parameters" ],
28
+ "tags " : [ " Parameters" ],
29
29
"operationId" : " Parameters_Post" ,
30
30
"produces" : [
31
31
" text/plain"
35
35
"name" : " registry" ,
36
36
"in" : " body" ,
37
37
"required" : true ,
38
- "type" : " object" ,
39
38
"schema" : { "$ref" : " #/definitions/Register" }
40
39
}
41
- ]
40
+ ],
41
+ "responses" : {}
42
42
}
43
43
},
44
44
"/api/Responses" : {
45
45
"get" : {
46
- "tag " : [ " Responses" ],
46
+ "tags " : [ " Responses" ],
47
47
"operationId" : " Responses_Get" ,
48
48
"produces" : [
49
49
" text/plain"
Original file line number Diff line number Diff line change
1
+ {
2
+ "swagger" : 2.0 ,
3
+ "info" : {
4
+ "title" : " type_changed" ,
5
+ "version" : " 1.0"
6
+ },
7
+ "host" : " localhost:8000" ,
8
+ "schemes" : [ " http" , " https" ],
9
+ "consumes" : [ " text/plain" , " text/json" ],
10
+ "produces" : [ " text/plain" ],
11
+ "paths" : {
12
+ "/api/Parameters" : {
13
+ "put" : {
14
+ "tag" : [ " Parameters" ],
15
+ "operationId" : " Parameters_Put" ,
16
+ "produces" : [
17
+ " text/plain"
18
+ ],
19
+ "parameters" : [
20
+ {
21
+ "name" : " database" ,
22
+ "in" : " body" ,
23
+ "required" : true ,
24
+ "type" : " object" ,
25
+ "schema" : { "$ref" : " #/definitions/Database" }
26
+ }
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ "definitions" : {
32
+ "Database" : {
33
+ "properties" : {
34
+ "a" : {
35
+ "type" : " string" ,
36
+ "readOnly" : true ,
37
+ "description" : " This is a system generated property.\n The _rid value is empty for this operation." ,
38
+ "x-ms-enum" : {
39
+ "name" : " ResourceIdentityType" ,
40
+ "modelAsString" : true
41
+ }
42
+ },
43
+ "b" : {
44
+ "type" : " string" ,
45
+ "enum" : [
46
+ " A" ,
47
+ " B" ,
48
+ " C"
49
+ ],
50
+ "description" : " This property shows the number of databases returned."
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "swagger" : 2.0 ,
3
+ "info" : {
4
+ "title" : " type_changed" ,
5
+ "version" : " 1.0"
6
+ },
7
+ "host" : " localhost:8000" ,
8
+ "schemes" : [ " http" , " https" ],
9
+ "consumes" : [ " text/plain" , " text/json" ],
10
+ "produces" : [ " text/plain" ],
11
+ "paths" : {
12
+ "/api/Parameters" : {
13
+ "put" : {
14
+ "tag" : [ " Parameters" ],
15
+ "operationId" : " Parameters_Put" ,
16
+ "produces" : [
17
+ " text/plain"
18
+ ],
19
+ "parameters" : [
20
+ {
21
+ "name" : " database" ,
22
+ "in" : " body" ,
23
+ "required" : true ,
24
+ "type" : " object" ,
25
+ "schema" : { "$ref" : " #/definitions/Database" }
26
+ }
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ "definitions" : {
32
+ "Database" : {
33
+ "properties" : {
34
+ "a" : {
35
+ "type" : " string" ,
36
+ "readOnly" : true ,
37
+ "description" : " This is a system generated property.\n The _rid value is empty for this operation."
38
+ },
39
+ "b" : {
40
+ "type" : " string" ,
41
+ "enum" : [
42
+ " A" ,
43
+ " B" ,
44
+ " C"
45
+ ],
46
+ "x-ms-enum" : {
47
+ "name" : " ResourceIdentityTypeNew" ,
48
+ "modelAsString" : false
49
+ },
50
+ "description" : " This property shows the number of databases returned."
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "swagger" : 2.0 ,
2
+ "swagger" : " 2.0" ,
3
3
"info" : {
4
4
"title" : " operation_check_01" ,
5
5
"version" : " 1.0"
9
9
"paths" : {
10
10
"/api/Parameters" : {
11
11
"put" : {
12
- "tag " : [ " Parameters" ],
12
+ "tags " : [ " Parameters" ],
13
13
"operationId" : " Parameters_Put" ,
14
14
"produces" : [
15
15
" text/plain"
19
19
"name" : " database" ,
20
20
"in" : " body" ,
21
21
"required" : true ,
22
- "type" : " object" ,
23
22
"schema" : { "$ref" : " #/definitions/Database" }
24
23
}
25
- ]
24
+ ], "responses" : {}
26
25
},
27
26
"post" : {
28
- "tag " : [ " Parameters" ],
27
+ "tags " : [ " Parameters" ],
29
28
"operationId" : " Parameters_Post" ,
30
29
"produces" : [
31
30
" text/plain"
35
34
"name" : " registry" ,
36
35
"in" : " body" ,
37
36
"required" : true ,
38
- "type" : " object" ,
39
37
"schema" : { "$ref" : " #/definitions/Registry" }
40
38
}
41
- ]
39
+ ],
40
+ "responses" : {}
42
41
}
43
42
},
44
43
"/api/Responses" : {
45
44
"get" : {
46
- "tag " : [ " Responses" ],
45
+ "tags " : [ " Responses" ],
47
46
"operationId" : " Responses_Get" ,
48
47
"produces" : [
49
48
" text/plain"
Original file line number Diff line number Diff line change
1
+ {
2
+ "swagger" : 2.0 ,
3
+ "info" : {
4
+ "title" : " type_changed" ,
5
+ "version" : " 1.0"
6
+ },
7
+ "host" : " localhost:8000" ,
8
+ "schemes" : [ " http" , " https" ],
9
+ "consumes" : [ " text/plain" , " text/json" ],
10
+ "produces" : [ " text/plain" ],
11
+ "paths" : {
12
+ "/api/Parameters" : {
13
+ "put" : {
14
+ "tag" : [ " Parameters" ],
15
+ "operationId" : " Parameters_Put" ,
16
+ "produces" : [
17
+ " text/plain"
18
+ ],
19
+ "parameters" : [
20
+ {
21
+ "name" : " database" ,
22
+ "in" : " body" ,
23
+ "required" : true ,
24
+ "type" : " object" ,
25
+ "schema" : { "$ref" : " #/definitions/Database" }
26
+ }
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ "definitions" : {
32
+ "Database" : {
33
+ "properties" : {
34
+ "a" : {
35
+ "type" : " string" ,
36
+ "readOnly" : true ,
37
+ "description" : " This is a system generated property.\n The _rid value is empty for this operation." ,
38
+ "enum" : [
39
+ " A" ,
40
+ " B" ,
41
+ " C"
42
+ ]
43
+ },
44
+ "b" : {
45
+ "type" : " string" ,
46
+ "enum" : [
47
+ " A" ,
48
+ " B" ,
49
+ " C"
50
+ ],
51
+ "x-ms-enum" : {
52
+ "name" : " ResourceIdentityType" ,
53
+ "modelAsString" : true
54
+ },
55
+ "description" : " This property shows the number of databases returned."
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
You can’t perform that action at this time.
0 commit comments