You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

amountbase.json 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "amountbase",
  4. "description": "Base class for amount and issue",
  5. "type": "object",
  6. "properties": {
  7. "value": {
  8. "description": "The quantity of the currency, denoted as a string so that it does not lose precision",
  9. "$ref": "value"
  10. },
  11. "currency": {
  12. "description": "The three-character code or hexadecimal string used to denote currencies, or \"drops\" for the smallest unit of XRP.",
  13. "$ref": "currency"
  14. },
  15. "counterparty": {
  16. "description": "The XRP Ledger address of the account that owes or is owed the funds (omitted if `currency` is \"XRP\" or \"drops\")",
  17. "$ref": "address"
  18. }
  19. },
  20. "additionalProperties": false,
  21. "required": ["currency"],
  22. "oneOf": [
  23. {
  24. "properties": {
  25. "currency": {
  26. "not": {
  27. "enum": ["XRP", "drops"]
  28. }
  29. }
  30. },
  31. "required": ["counterparty"]
  32. },
  33. {
  34. "properties": {
  35. "currency": {
  36. "enum": ["XRP", "drops"]
  37. }
  38. },
  39. "not": {
  40. "required": ["counterparty"]
  41. }
  42. }
  43. ]
  44. }