Skip to content

Commit

Permalink
Use common CloudError & CloudErrorBody (Azure#13286)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu authored and mkarmark committed Jul 20, 2021
1 parent 6b90f06 commit c17d435
Showing 1 changed file with 7 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -93,7 +93,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -135,7 +135,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -178,7 +178,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -215,7 +215,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -309,7 +309,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
Expand All @@ -329,7 +329,7 @@
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "#/definitions/CloudErrorBody"
"$ref": "./artifacts.json#/definitions/CloudErrorBody"
}
}
},
Expand Down Expand Up @@ -469,51 +469,6 @@
"description": "Creator Id of the library/package."
}
}
},
"CloudError": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error response.",
"type": "object",
"properties": {
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "#/definitions/CloudErrorBody"
}
},
"required": [
"error"
]
},
"CloudErrorBody": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message.",
"type": "string"
},
"target": {
"description": "Property name/path in request associated with error.",
"type": "string"
},
"details": {
"description": "Array with additional error details.",
"type": "array",
"items": {
"$ref": "#/definitions/CloudError"
}
}
},
"required": [
"code",
"message"
]
}
},
"parameters": {
Expand Down

0 comments on commit c17d435

Please sign in to comment.