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.

memo.json 1.0KB

12345678910111213141516171819202122232425
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "memo",
  4. "description": "Memo objects represent arbitrary data that can be included in a transaction",
  5. "type": "object",
  6. "properties": {
  7. "type": {
  8. "pattern": "^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]*$",
  9. "description": "Conventionally, a unique relation (according to [RFC 5988](http://tools.ietf.org/html/rfc5988#section-4)) that defines the format of this memo. Only characters allowed in URLs are permitted."
  10. },
  11. "format": {
  12. "pattern": "^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]*$",
  13. "description": "Conventionally containing information on how the memo is encoded, for example as a [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml). Only characters allowed in URLs are permitted."
  14. },
  15. "data": {
  16. "type": "string",
  17. "description": "Arbitrary string, conventionally containing the content of the memo."
  18. }
  19. },
  20. "additionalProperties": false,
  21. "anyOf": [
  22. {"required": ["data"]},
  23. {"required": ["type"]}
  24. ]
  25. }