Skip to content
Merged
Changes from all 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 @@ -1342,31 +1342,7 @@
"GatewayError": {
"description": "Detail of gateway errors.",
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Error code of list gateway."
},
"message": {
"type": "string",
"description": "Error message of list gateway."
},
"subCode": {
"description": "The error sub code",
"type": "integer",
"format": "int32"
},
"httpStatusCode": {
"description": "The http status code",
"type": "integer",
"format": "int32"
},
"timeStamp": {
"description": "the timestamp for the error.",
"type": "string",
"readOnly": true
}
}
"$ref": "#/definitions/ErrorDetail"
},
"CheckServerNameAvailabilityParameters": {
"description": "Details of server name request body.",
Expand Down Expand Up @@ -1431,7 +1407,7 @@
"error": {
"type": "object",
"description": "The error detail of the operation if any.",
"$ref": "#/definitions/ErrorObject"
"$ref": "#/definitions/ErrorDetail"
}
}
},
Expand Down Expand Up @@ -1493,6 +1469,23 @@
"type": "string",
"description": "The error target."
},
"subCode": {
"readOnly": true,
"description": "The error sub code",
"type": "integer",
"format": "int32"
},
"httpStatusCode": {
"readOnly": true,
"description": "The http status code",
"type": "integer",
"format": "int32"
},
"timeStamp": {
"readOnly": true,
"description": "the timestamp for the error.",
"type": "string"
},
"details": {
"readOnly": true,
"type": "array",
Expand Down Expand Up @@ -1526,50 +1519,13 @@
},
"description": "The resource management error additional info."
},
"ErrorObject": {
"type": "object",
"description": "The error object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
},
"subCode": {
"description": "The error sub code",
"type": "integer",
"format": "int32"
},
"httpStatusCode": {
"description": "The http status code",
"type": "integer",
"format": "int32"
},
"timeStamp": {
"description": "the timestamp for the error.",
"type": "string",
"readOnly": true
},
"details": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/ErrorDetail"
},
"description": "The error details."
}
}
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"properties": {
"error": {
"description": "The error object",
"$ref": "#/definitions/ErrorObject"
"$ref": "#/definitions/ErrorDetail"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend referring to common definitions "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/..." This will enforce the right schema.

}
}
}
Expand Down