Skip to content

Commit 6c5252d

Browse files
aim-for-betterZhenyu Zhou
authored andcommitted
{HDInsight} Fix Linter errors (Azure#21043)
* Fix operation missed example and duration value is invalid format in example linter errors * Update example file to fix schema issue Co-authored-by: Zhenyu Zhou <[email protected]>
1 parent 1962275 commit 6c5252d

File tree

6 files changed

+78
-2
lines changed

6 files changed

+78
-2
lines changed

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"200": {
104104
"body": {
105105
"validationErrors": [],
106-
"estimatedCreationDuration": "00:20:00"
106+
"estimatedCreationDuration": "PT20M"
107107
}
108108
}
109109
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-06-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.HDInsight/register/action",
11+
"display": {
12+
"provider": "Microsoft.HDInsight",
13+
"resource": null,
14+
"operation": "Register HDInsight resource provider",
15+
"description": "Register HDInsight resource provider for the subscription"
16+
},
17+
"properties": null
18+
},
19+
{
20+
"name": "Microsoft.HDInsight/unregister/action",
21+
"display": {
22+
"provider": "Microsoft.HDInsight",
23+
"resource": null,
24+
"operation": "Unregister HDInsight resource provider",
25+
"description": "Unregister HDInsight resource provider for the subscription"
26+
},
27+
"properties": null
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
],
4242
"description": "Lists all of the available HDInsight REST API operations.",
4343
"operationId": "Operations_List",
44+
"x-ms-examples": {
45+
"Lists all of the available operations": {
46+
"$ref": "./examples/ListHDInsightOperations.json"
47+
}
48+
},
4449
"parameters": [
4550
{
4651
"$ref": "#/parameters/ApiVersionParameter"

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"200": {
104104
"body": {
105105
"validationErrors": [],
106-
"estimatedCreationDuration": "00:20:00"
106+
"estimatedCreationDuration": "PT20M"
107107
}
108108
}
109109
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.HDInsight/register/action",
11+
"display": {
12+
"provider": "Microsoft.HDInsight",
13+
"resource": null,
14+
"operation": "Register HDInsight resource provider",
15+
"description": "Register HDInsight resource provider for the subscription"
16+
},
17+
"properties": null
18+
},
19+
{
20+
"name": "Microsoft.HDInsight/unregister/action",
21+
"display": {
22+
"provider": "Microsoft.HDInsight",
23+
"resource": null,
24+
"operation": "Unregister HDInsight resource provider",
25+
"description": "Unregister HDInsight resource provider for the subscription"
26+
},
27+
"properties": null
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/operations.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
],
4242
"description": "Lists all of the available HDInsight REST API operations.",
4343
"operationId": "Operations_List",
44+
"x-ms-examples": {
45+
"Lists all of the available operations": {
46+
"$ref": "./examples/ListHDInsightOperations.json"
47+
}
48+
},
4449
"parameters": [
4550
{
4651
"$ref": "#/parameters/ApiVersionParameter"

0 commit comments

Comments
 (0)