Skip to content

Commit

Permalink
Swagger Linting Fix (Azure#12162)
Browse files Browse the repository at this point in the history
* Fix Linting Issuing

* no message

* fix description

* add description and object back

* test to resolve model validation test

(cherry picked from commit ab273df)
  • Loading branch information
david-msft authored and josuh committed Jan 6, 2021
1 parent 4d3e4a8 commit b358aa6
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"azsdktest@microsoft.com",
"azsdktest2@microsoft.com"
]
},
"provisioningState": "Preparing",
"state": "Preparing"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
"schema": {
"$ref": "#/definitions/DedicatedCapacity"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
Expand Down Expand Up @@ -132,6 +138,12 @@
"schema": {
"$ref": "#/definitions/DedicatedCapacity"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -177,6 +189,12 @@
},
"202": {
"description": "Accepted."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -234,6 +252,12 @@
"schema": {
"$ref": "#/definitions/DedicatedCapacity"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -278,6 +302,12 @@
},
"202": {
"description": "Accepted."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -322,6 +352,12 @@
},
"202": {
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -356,6 +392,12 @@
"schema": {
"$ref": "#/definitions/DedicatedCapacities"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -389,6 +431,12 @@
"schema": {
"$ref": "#/definitions/DedicatedCapacities"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -419,6 +467,12 @@
"schema": {
"$ref": "#/definitions/SkuEnumerationForNewResourceResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
Expand Down Expand Up @@ -462,6 +516,12 @@
"schema": {
"$ref": "#/definitions/SkuEnumerationForExistingResourceResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
Expand Down Expand Up @@ -539,6 +599,12 @@
"schema": {
"$ref": "#/definitions/CheckCapacityNameAvailabilityResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
Expand Down Expand Up @@ -831,16 +897,21 @@
}
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"description": "Describes the format of Error response.",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
"error": {
"description": "The error object",
"properties": {
"code": {
"type": "string",
"description": "Error code"
},
"message": {
"type": "string",
"description": "Error message indicating why the operation failed."
}
}
}
}
},
Expand Down

0 comments on commit b358aa6

Please sign in to comment.