Skip to content

Commit 11d9421

Browse files
committed
add raw attachment content data
1 parent 7ecf06c commit 11d9421

File tree

6 files changed

+45
-21
lines changed

6 files changed

+45
-21
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
2.0.0
5+
-----
6+
7+
* Attachment fixtures are now objects containing up to two keys. `metadata`
8+
contains the JSON encoded attachment while `content`, if present, denotes
9+
the raw attachment content.
10+
411
1.0.0
512
-----
613

UPGRADE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
UPGRADE
2+
=======
3+
4+
Upgrading from 1.x to 2.0
5+
-------------------------
6+
7+
* Attachment fixtures are now objects containing up to two keys. `metadata`
8+
contains the JSON encoded attachment while `content`, if present, denotes
9+
the raw attachment content.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"extra": {
2323
"branch-alias": {
24-
"dev-master": "1.0.x-dev"
24+
"dev-master": "2.0.x-dev"
2525
}
2626
}
2727
}

data/Attachment/JSON.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2-
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
3-
"display": {
4-
"en-US": "JSON attachment"
2+
"metadata": {
3+
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
4+
"display": {
5+
"en-US": "JSON attachment"
6+
},
7+
"contentType": "application/json",
8+
"length": 60,
9+
"sha2": "f4135c31e2710764604195dfe4e225884d8108467cc21670803e384b80df88ee"
510
},
6-
"contentType": "application/json",
7-
"length": 60,
8-
"sha2": "f4135c31e2710764604195dfe4e225884d8108467cc21670803e384b80df88ee"
11+
"content": "{\"propertyA\":\"value1\",\"propertyB\":\"value2\",\"propertyC\":true}"
912
}

data/Attachment/file_url_only.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2-
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
3-
"display": {
4-
"en-US": "FileUrl Only attachment"
5-
},
6-
"contentType": "application/octet-stream",
7-
"length": 65556,
8-
"sha2": "d14f1580a2cebb6f8d4a8a2fc0d13c67f970e84f8d15677a93ae95c9080df899",
9-
"fileUrl": "http://tincanapi.com/conformancetest/attachment/fileUrlOnly"
2+
"metadata": {
3+
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
4+
"display": {
5+
"en-US": "FileUrl Only attachment"
6+
},
7+
"contentType": "application/octet-stream",
8+
"length": 65556,
9+
"sha2": "d14f1580a2cebb6f8d4a8a2fc0d13c67f970e84f8d15677a93ae95c9080df899",
10+
"fileUrl": "http://tincanapi.com/conformancetest/attachment/fileUrlOnly"
11+
}
1012
}

data/Attachment/text.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2-
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
3-
"display": {
4-
"en-US": "Text attachment"
2+
"metadata": {
3+
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
4+
"display": {
5+
"en-US": "Text attachment"
6+
},
7+
"contentType": "text/plain",
8+
"length": 18,
9+
"sha2": "bd1a58265d96a3d1981710dab8b1e1ed04a8d7557ea53ab0cf7b44c04fd01545"
510
},
6-
"contentType": "text/plain",
7-
"length": 18,
8-
"sha2": "bd1a58265d96a3d1981710dab8b1e1ed04a8d7557ea53ab0cf7b44c04fd01545"
11+
"content": "some text content"
912
}

0 commit comments

Comments
 (0)