From a955700e0bd21123dd89d85b3c0d7342140d4da1 Mon Sep 17 00:00:00 2001 From: Nikhil Chaturvedi Date: Tue, 2 Feb 2021 16:52:24 -0800 Subject: [PATCH] Removing refs to ErrorResponse and removing new props from CloudErrorBody --- .../preview/2020-06-01-preview/cosmos-db.json | 19 ++++--------------- .../preview/2020-06-01-preview/notebook.json | 14 +++++++------- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json index bf967512ef0c..154e14725f13 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json @@ -405,7 +405,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/CloudError" } } } @@ -454,7 +454,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/CloudError" } } } @@ -4477,7 +4477,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, - "description": "An error response from the Storage service." + "description": "An error response from the Cosmos DB service." }, "CloudErrorBody": { "x-ms-external": true, @@ -4489,20 +4489,9 @@ "message": { "type": "string", "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." } }, - "description": "An error response from the Storage service." + "description": "An error response from the Cosmos DB service." }, "FailoverPolicies": { "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/notebook.json index caf426f3c4e1..87e7f77b67f7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/notebook.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/notebook.json @@ -68,7 +68,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } }, @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } }, @@ -210,7 +210,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } }, @@ -260,7 +260,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } } @@ -306,7 +306,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } } @@ -352,7 +352,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-06-01-preview/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "cosmos-db.json#/definitions/CloudError" } } }