Skip to content

Commit

Permalink
updated the DefaultErrorResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Meha Kaushik committed Jul 17, 2020
1 parent cab5d0f commit 78c90b5
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -454,7 +454,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -1723,7 +1723,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -1769,7 +1769,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -2073,7 +2073,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -2122,7 +2122,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -2939,7 +2939,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -2985,7 +2985,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3289,7 +3289,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3338,7 +3338,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3621,7 +3621,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3667,7 +3667,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3950,7 +3950,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -3996,7 +3996,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -4300,7 +4300,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -4349,7 +4349,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -4592,7 +4592,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -4638,7 +4638,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -4982,7 +4982,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -5031,7 +5031,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/DefaultErrorResponse"
}
}
}
Expand Down Expand Up @@ -5208,19 +5208,73 @@
},
"description": "The List operation response, that contains the graphs and their properties."
},
"ErrorResponse": {
"ApiErrorBase": {
"properties": {
"code": {
"description": "Error code.",
"type": "string"
"type": "string",
"description": "The error code."
},
"target": {
"type": "string",
"description": "The target of the particular error."
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
"type": "string",
"description": "The error message."
}
},
"description": "Api error base."
},
"InnerError": {
"properties": {
"exceptiontype": {
"type": "string",
"description": "The exception type."
},
"errordetail": {
"type": "string",
"description": "The internal error message or exception dump."
}
},
"description": "Inner error details."
},
"DefaultErrorResponse": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "#/definitions/ApiError"
}
},
"description": "Error Response."
},
"ApiError": {
"properties": {
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/ApiErrorBase"
},
"description": "The Api error details"
},
"innererror": {
"$ref": "#/definitions/InnerError",
"description": "The Api inner error"
},
"code": {
"type": "string",
"description": "The error code."
},
"target": {
"type": "string",
"description": "The target of the particular error."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "Api error."
},
"FailoverPolicies": {
"properties": {
"failoverPolicies": {
Expand Down
Loading

0 comments on commit 78c90b5

Please sign in to comment.