API Validation error could be more helpful if we provide the field name in the error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Undecided
|
Justin Hopper |
Bug Description
The error message that I received here, was clear about what the issue is, but it didn't tell me anything about where the validation has failed (for which field specifically). This will be helpful if we have multiple of these fields in the object which can go wrong
# trove-cli backup create --name Test --instance beb407e9-
REQUEST:
curl -i https://<API>/v1.
BODY: {
"backup": {
"instance": "beb407e9-
"name": "Test"
}
}
RESPONSE HEADERS: {'date': 'Tue, 16 Jul 2013 22:18:15 GMT', 'status': '400', 'content-length': '90', 'content-type': 'application/json; charset=UTF-8'}
RESPONSE BODY : {
"badRequest": {
"code": 400,
"message": "Validation error: None is not of type 'string'"
}
}
Validation error: None is not of type 'string' (HTTP 400)
description: | updated |
Changed in trove: | |
assignee: | nobody → Justin Hopper (justin-hopper) |
Changed in trove: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/37706
Review: https:/