change snake_case to camelCase in responses from api.submit and api.getServerInfo and add schema for it

This commit is contained in:
Ivan Tivonenko
2015-07-30 02:24:36 +03:00
parent c6f450842e
commit 03640efef5
9 changed files with 109 additions and 23 deletions

View File

@@ -32,7 +32,7 @@ function getServerInfo(callback: (err: any, data: any) => void): void {
const message = _.get(error, ['remote', 'error_message'], error.message);
callback(new common.errors.RippledNetworkError(message));
} else {
callback(null, response.info);
callback(null, common.convertKeysFromSnakeCaseToCamelCase(response.info));
}
});
}