Skip to content

Commit 7335f52

Browse files
authored
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 4b8b1c8 commit 7335f52

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
@@ -80,3 +80,27 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
8080
- Unlike `latitude` and `longitude`, the domain of the `altitude` term is the `Object` type. The `altitude` term should be included in the list of properties of an `Object`. Because `altitude` is primarily documented as a property of a `Place`, publishers should not include `altitude` on objects that are not of type `Place`, and consumers should accept objects with this property that aren't of type `Place`.
8181

8282
- The domain of the `attributedTo` property is both `Link` and `Object`. `attributedTo` should be included in the list of properties of a `Link`.
83+
84+
- Example 79 has an `Image` object with `width` and `height` properties, which
85+
are only allowed on `Link` objects. One alternative is to use a `Link` object
86+
with the correct `height` and `width` as the `url` property for each `Image`
87+
object.
88+
89+
```json
90+
{
91+
"@context": "https://www.w3.org/ns/activitystreams",
92+
"summary": "A simple note",
93+
"type": "Note",
94+
"content": "This is all there is.",
95+
"icon": {
96+
"type": "Image",
97+
"name": "Note icon",
98+
"url": {
99+
"href": "http://example.org/note.png",
100+
"type": "Link",
101+
"width": 16,
102+
"height": 16
103+
}
104+
}
105+
}
106+
```

0 commit comments

Comments
 (0)