Change json string to snake_case

This commit is contained in:
Chaoguang Lin 2020-07-28 11:42:03 -07:00
parent 726eb18119
commit 3ba940a63d
2 changed files with 6 additions and 6 deletions

View File

@ -925,8 +925,8 @@ const KeyRef JSONSchemas::aggregateHealthSchema = LiteralStringRef(R"""(
const KeyRef JSONSchemas::managementApiErrorSchema = LiteralStringRef(R"""(
{
"Retriable": false,
"Command": "exclude",
"Message": "The reason of the error"
"retriable": false,
"command": "exclude",
"message": "The reason of the error"
}
)""");

View File

@ -55,9 +55,9 @@ class ManagementAPIError {
public:
static std::string toJsonString(bool retriable, std::string command, std::string msg) {
json_spirit::mObject errorObj;
errorObj["Retriable"] = retriable;
errorObj["Command"] = command;
errorObj["Message"] = msg;
errorObj["retriable"] = retriable;
errorObj["command"] = command;
errorObj["message"] = msg;
return json_spirit::write_string(json_spirit::mValue(errorObj), json_spirit::Output_options::raw_utf8);
}