Merge "Expand schema for error.codes to reflect reality"

This commit is contained in:
Zuul
2018-07-26 16:28:52 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"errors": [ "errors": [
{ {
"request_id": "1dc92f06-8ede-4fb4-8921-b507601fb59d", "request_id": "1dc92f06-8ede-4fb4-8921-b507601fb59d",
"code": "orchestration.create-failed", "code": "orchestration.create_failed",
"status": 418, "status": 418,
"title": "The Stack could not be created", "title": "The Stack could not be created",
"detail": "The Stack could not be created because of error(s) in other parts of the system.", "detail": "The Stack could not be created because of error(s) in other parts of the system.",

View File

@@ -17,7 +17,8 @@
}, },
"code": { "code": {
"type": "string", "type": "string",
"description": "A service-specific error code. The general form of the code is service-type.error-code. service-type MUST be the service type as defined by the service types authority at http://specs.openstack.org/openstack/service-types-authority. error-code is defined by service project team and MUST only consist of lowercase alpha, numeric, '.', and '-' characters." "pattern": "^[a-z0-9._-]+$",
"description": "A service-specific error code. The general form of the code is service-type.error-code. service-type MUST be the service type as defined by the service types authority at http://specs.openstack.org/openstack/service-types-authority. error-code is defined by service project team and MUST only consist of lowercase alpha, numeric, '.', '_', and '-' characters."
}, },
"status": { "status": {
"type": "integer", "type": "integer",