Skip to content

Commit 42d8b7a

Browse files
committed
width and height are not allowed on an Image; closes #467.
1 parent eebc7a6 commit 42d8b7a

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

ERRATA.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,38 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
88

99
## Activity Vocabulary
1010

11-
- None yet reported.
11+
- Example 80 has `Image` objects with `width` and `height` properties, which
12+
are only allowed on `Link` objects. One alternative is to use `Link` objects
13+
with the correct `height` and `width` as the `url` property for each `Image`
14+
object.
15+
16+
```json
17+
{
18+
"@context": "https://www.w3.org/ns/activitystreams",
19+
"summary": "A simple note",
20+
"type": "Note",
21+
"content": "A simple note",
22+
"icon": [
23+
{
24+
"type": "Image",
25+
"summary": "Note (16x16)",
26+
"url": {
27+
"type": "Link",
28+
"href": "http://example.org/note1.png",
29+
"width": 16,
30+
"height": 16
31+
}
32+
},
33+
{
34+
"type": "Image",
35+
"summary": "Note (32x32)",
36+
"url": {
37+
"type": "Link",
38+
"href": "http://example.org/note2.png",
39+
"width": 32,
40+
"height": 32
41+
}
42+
}
43+
]
44+
}
45+
```

0 commit comments

Comments
 (0)