Skip to content

Commit

Permalink
Address PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jihochang committed Dec 9, 2019
1 parent 51b036c commit d90be48
Showing 1 changed file with 77 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
"schema": {
"$ref": "#/definitions/OperationEntityListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
Expand Down Expand Up @@ -79,6 +85,12 @@
"schema": {
"$ref": "#/definitions/DomainServiceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
Expand Down Expand Up @@ -116,6 +128,12 @@
"schema": {
"$ref": "#/definitions/DomainServiceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
Expand Down Expand Up @@ -177,6 +195,12 @@
"schema": {
"$ref": "#/definitions/DomainService"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -213,6 +237,12 @@
"schema": {
"$ref": "#/definitions/DomainService"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
Expand Down Expand Up @@ -248,6 +278,12 @@
},
"204": {
"description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -299,6 +335,12 @@
"schema": {
"$ref": "#/definitions/DomainService"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -708,6 +750,41 @@
}
}
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"description": "An error response from the Domain Services.",
"$ref": "#/definitions/CloudErrorBody"
}
},
"description": "An error response from the Domain Services."
},
"CloudErrorBody": {
"x-ms-external": true,
"properties": {
"code": {
"type": "string",
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
},
"message": {
"type": "string",
"description": "A message describing the error, intended to be suitable for display in a user interface."
},
"target": {
"type": "string",
"description": "The target of the particular error. For example, the name of the property in error."
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/CloudErrorBody"
},
"description": "A list of additional details about the error."
}
},
"description": "An error response from the Domain Services."
},
"OperationEntityListResult": {
"description": "The list of domain service operation response.",
"type": "object",
Expand Down

0 comments on commit d90be48

Please sign in to comment.