12345678910111213141516171819202122232425 |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "title": "memo",
- "description": "Memo objects represent arbitrary data that can be included in a transaction",
- "type": "object",
- "properties": {
- "type": {
- "pattern": "^[A-Za-z0-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."
- },
- "format": {
- "pattern": "^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]*$",
- "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."
- },
- "data": {
- "type": "string",
- "description": "Arbitrary string, conventionally containing the content of the memo."
- }
- },
- "additionalProperties": false,
- "anyOf": [
- {"required": ["data"]},
- {"required": ["type"]}
- ]
- }
|