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

Fixing the Default Error Response for 2020-06-01-preview APIs #12800

Merged
merged 10 commits into from
Feb 7, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -4215,7 +4215,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -4251,7 +4251,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -4293,7 +4293,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -4483,7 +4483,8 @@
},
"description": "Error Response."
},
"DefaultErrorResponse": {
"CloudError": {
"x-ms-external": true,
"description": "An error response from the service.",
"properties": {
"error": {
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.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -123,7 +123,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -167,7 +167,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -209,7 +209,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -251,7 +251,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -304,7 +304,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -348,7 +348,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -390,7 +390,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -112,7 +112,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -160,7 +160,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -247,7 +247,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -295,7 +295,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/DefaultErrorResponse"
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions specification/cosmos-db/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ input-file:
- Microsoft.DocumentDB/preview/2020-06-01-preview/restorable.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateLinkResources.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateEndpointConnection.json
modelerfour:
lenient-model-deduplication: true
```

### Tag: package-2020-04
Expand Down