Skip to content

Commit

Permalink
[IoTCentral] change error details definition (#8395)
Browse files Browse the repository at this point in the history
  • Loading branch information
kawayiboy authored Mar 3, 2020
1 parent 5b20a9f commit 28cb8ba
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Default error response",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -130,7 +130,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -184,7 +184,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -229,7 +229,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -268,7 +268,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -311,7 +311,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -357,7 +357,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -403,7 +403,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -443,7 +443,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -480,7 +480,7 @@
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
"$ref": "#/definitions/CloudError"
}
}
},
Expand All @@ -500,13 +500,11 @@
},
"displayName": {
"description": "The display name of the application.",
"type": "string",
"pattern": "^.{1,200}$"
"type": "string"
},
"subdomain": {
"description": "The subdomain of the application.",
"type": "string",
"pattern": "^[a-z0-9-]{1,63}$"
"type": "string"
},
"template": {
"description": "The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.",
Expand Down Expand Up @@ -624,17 +622,18 @@
"location"
]
},
"ErrorDetails": {
"CloudError": {
"description": "Error details.",
"x-ms-external": true,
"properties": {
"error": {
"description": "Error response body.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/ErrorResponseBody"
"$ref": "#/definitions/CloudErrorBody"
}
}
},
"ErrorResponseBody": {
"CloudErrorBody": {
"description": "Details of error response.",
"type": "object",
"properties": {
Expand All @@ -657,7 +656,7 @@
"type": "array",
"description": "A list of additional details about the error.",
"items": {
"$ref": "#/definitions/ErrorResponseBody"
"$ref": "#/definitions/CloudErrorBody"
}
}
}
Expand Down Expand Up @@ -744,8 +743,7 @@
"properties": {
"name": {
"description": "The name of the IoT Central application instance to check.",
"type": "string",
"pattern": "^[a-z0-9-]{1,63}$"
"type": "string"
},
"type": {
"description": "The type of the IoT Central resource to query.",
Expand Down

0 comments on commit 28cb8ba

Please sign in to comment.