Skip to content

Commit

Permalink
Use CloudError instead of ErrorResponse to avoid breaking change (#16691
Browse files Browse the repository at this point in the history
)

Co-authored-by: Anat Gilenson <anatgilenson@microsoft.com>
  • Loading branch information
anat-gilenson and Anat Gilenson authored Nov 8, 2021
1 parent 5357c1a commit f226c12
Show file tree
Hide file tree
Showing 18 changed files with 126 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -133,7 +133,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -197,7 +197,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -243,7 +243,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -291,7 +291,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -345,7 +345,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -403,7 +403,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -452,7 +452,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -497,7 +497,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -548,7 +548,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -124,7 +124,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -179,7 +179,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -124,7 +124,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -179,7 +179,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -285,7 +285,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -337,7 +337,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -391,7 +391,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -449,7 +449,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -498,7 +498,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed to enrich this ip.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@
"default": {
"description": "Error response describing why the operation failed to enrich this domain.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -181,7 +181,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -232,7 +232,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -283,7 +283,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -334,7 +334,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -385,7 +385,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -445,7 +445,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -500,7 +500,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -130,7 +130,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -185,7 +185,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -231,7 +231,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -127,7 +127,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Loading

0 comments on commit f226c12

Please sign in to comment.