mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Validate the tx_json field in sign_for (RIPD-1100)
This commit is contained in:
@@ -1112,6 +1112,45 @@ R"({
|
||||
"Missing field 'tx_json.TransactionType'.",
|
||||
"Missing field 'tx_json.TransactionType'."}},
|
||||
|
||||
{ "Invalid field 'tx_json': string instead of object",
|
||||
R"({
|
||||
"command": "doesnt_matter",
|
||||
"account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
|
||||
"secret": "masterpassphrase",
|
||||
"tx_json": ""
|
||||
})",
|
||||
{
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object."}},
|
||||
|
||||
{ "Invalid field 'tx_json': integer instead of object",
|
||||
R"({
|
||||
"command": "doesnt_matter",
|
||||
"account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
|
||||
"secret": "masterpassphrase",
|
||||
"tx_json": 20160331
|
||||
})",
|
||||
{
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object."}},
|
||||
|
||||
{ "Invalid field 'tx_json': array instead of object",
|
||||
R"({
|
||||
"command": "doesnt_matter",
|
||||
"account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
|
||||
"secret": "masterpassphrase",
|
||||
"tx_json": [ "hello", "world" ]
|
||||
})",
|
||||
{
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object.",
|
||||
"Invalid field 'tx_json', not object."}},
|
||||
|
||||
{ "Minimal submit_multisigned.",
|
||||
R"({
|
||||
"command": "submit_multisigned",
|
||||
|
||||
Reference in New Issue
Block a user