Skip to content

Commit c310fed

Browse files
committed
Erratum for Example 79 to correct width and height properties
Example 79 includes an Image with width and height properties that are only allowed for Link objects. This erratum changes the example to move the width and height to the url property.
1 parent 7b42bc3 commit c310fed

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ERRATA.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
108108

109109
- The domain of the `attributedTo` property is both `Link` and `Object`. `attributedTo` should be included in the list of properties of a `Link`.
110110

111+
- Example 79 has an `Image` object with `width` and `height` properties, which
112+
are only allowed on `Link` objects. One alternative is to use a `Link` object
113+
with the correct `height` and `width` as the `url` property for each `Image`
114+
object.
115+
116+
```json
117+
{
118+
"@context": "https://www.w3.org/ns/activitystreams",
119+
"summary": "A simple note",
120+
"type": "Note",
121+
"content": "This is all there is.",
122+
"icon": {
123+
"type": "Image",
124+
"name": "Note icon",
125+
"url": {
126+
"href": "http://example.org/note.png",
127+
"type": "Link",
128+
"width": 16,
129+
"height": 16
130+
}
131+
}
132+
}
133+
```
134+
111135
- The Notes for the `to` property do not correctly identify the functionality (one or more) of the values of the property. The notes should read: "Identifies one or more entities that are part of the public primary audience of this Object."
112136

113137
- The Notes for the `bto` property do not correctly identify the functionality (one or more) of the values of the property. The notes should read: "Identifies one or more entities that are part of the private primary audience of this Object."

0 commit comments

Comments
 (0)