Change json string to snake_case
This commit is contained in:
parent
726eb18119
commit
3ba940a63d
|
@ -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"
|
||||
}
|
||||
)""");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue