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

[IoTCentral] change error details definition #8395

Merged
merged 5 commits into from
Mar 3, 2020
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/CloudErrorResponseBody"
}
}
},
"ErrorResponseBody": {
"CloudErrorResponseBody": {
"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/CloudErrorResponseBody"
}
}
}
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