Adding extension for attachments

 * if the `attachment` property is missing, the client SHOULD treat the data element as a text element.