change pathfind scheme so destination can be specified without counterparty

This commit is contained in:
Ivan Tivonenko
2015-07-22 15:04:36 +03:00
parent 00f318284f
commit a88157bb92

View File

@@ -24,7 +24,32 @@
"additionalProperties": false,
"required": ["address"]
},
"destination": {"$ref": "adjustment"}
"destination": {
"type": "object",
"properties": {
"address": {"$ref": "address"},
"amount": {
"type": "object",
"properties": {
"value": {
"description": "The quantity of the currency, denoted as a string to retain floating point precision",
"$ref": "value"
},
"currency": {
"description": "The three-character code or hex string used to denote currencies",
"$ref": "currency"
},
"counterparty": {
"description": "The Ripple account address of the currency's issuer or gateway",
"$ref": "address"
},
"required": ["currency", "value"]
},
"additionalProperties": false
}
},
"required": ["address", "amount"]
}
},
"required": ["source", "destination"],
"additionalProperties": false