Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deployment Scripts] Deployment scripts error model update #8481

Merged
merged 8 commits into from
Feb 26, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -137,7 +137,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -177,7 +177,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -217,7 +217,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
},
Expand Down Expand Up @@ -298,7 +298,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -340,7 +340,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
}
Expand Down Expand Up @@ -379,7 +379,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/DeploymentScriptsError"
}
}
},
Expand Down Expand Up @@ -676,7 +676,7 @@
},
"error": {
"description": "Error that is relayed from the script execution.",
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -817,30 +817,13 @@
}
}
},
"DefaultErrorResponse": {
"description": "The details of the error.",
"type": "object",
"DeploymentScriptsError": {
"properties": {
"code": {
"description": "One of a server-defined set of error codes.",
"type": "string"
},
"message": {
"description": "A human-readable representation of the error.",
"type": "string"
},
"target": {
"description": "The target of the particular error.",
"type": "string"
},
"details": {
"description": "Detailed errors.",
"type": "array",
"items": {
"$ref": "#/definitions/DefaultErrorResponse"
}
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
},
"description": "Deployment scripts error response."
}
},
"parameters": {
Expand Down