Skip to content

Commit

Permalink
Revert "Changing error response to use common definition"
Browse files Browse the repository at this point in the history
This reverts commit 5a6c783.
  • Loading branch information
toddm committed Aug 3, 2021
1 parent 5a6c783 commit 71d42c6
Showing 1 changed file with 68 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -110,7 +110,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -184,7 +184,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -221,7 +221,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -271,7 +271,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -316,7 +316,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -366,7 +366,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -416,7 +416,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -456,7 +456,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -499,7 +499,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -545,7 +545,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -588,7 +588,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -625,7 +625,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -684,7 +684,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -743,7 +743,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -815,7 +815,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -858,7 +858,7 @@
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/Error"
}
}
}
Expand Down Expand Up @@ -2291,6 +2291,56 @@
}
}
},
"ErrorResponse": {
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "#/definitions/ErrorDetails"
}
}
},
"Error": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/ExtendedErrorInfo"
}
}
},
"ExtendedErrorInfo": {
"type": "object",
"properties": {
"code": {
"$ref": "#/definitions/ErrorResponseCode"
},
"message": {
"type": "string"
}
}
},
"ErrorDetails": {
"type": "object",
"description": "The details of the error.",
"properties": {
"code": {
"description": "Error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
},
"AppliedReservations": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 71d42c6

Please sign in to comment.