Schema ID
https://gobl.org/draft-0/org/attachment
Properties
| Title | Property | Type | Description |
|---|---|---|---|
| UUID | uuid | string | Universally Unique Identifier. |
| Key | key | cbc.Key | Key used to identify the attachment inside the document. |
| Code | code | cbc.Code | Code used to identify the payload of the attachment. |
| Name | name | string | Filename of the attachment, will override name retrieved from URL. |
| Description | description | string | Details of why the attachment is being included and details on what it contains. |
| URL | url | string | URL of where to find the attachment. |
| Digest | digest | dsig.Digest | Digest is used to verify the integrity of the attachment when downloaded from the URL. |
| MIME Type | mime | string | MIME type of the attachment. |
Validation Rules
| Field | Test | Validation Code / Message |
|---|---|---|
url |
| GOBL-ORG-ATTACHMENT-01Attachment URL must be valid |
mime |
| GOBL-ORG-ATTACHMENT-02Attachment MIME type must be of an expected types defined in EN16931-1:2017 |