Skip to content

Commit 291a3fc

Browse files
authored
Add erratum for example 157
Example 157 has a JSON error since a string wraps across multiple lines. The erratum specifies the same string stretched across the full line.
1 parent ab3d6dd commit 291a3fc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ERRATA.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,23 @@ 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 157 is not valid JSON because the `content` property extends over multiple lines. The correct example is:
85+
86+
```json
87+
{
88+
"@context": "https://www.w3.org/ns/activitystreams",
89+
"name": "A thank-you note",
90+
"type": "Note",
91+
"content": "Thank you <a href='http://sally.example.org'>@sally</a> for all your hard work! <a href='http://example.org/tags/givingthanks'>#givingthanks</a>",
92+
"to": {
93+
"name": "Sally",
94+
"type": "Person",
95+
"id": "http://sally.example.org"
96+
},
97+
"tag": {
98+
"id": "http://example.org/tags/givingthanks",
99+
"name": "#givingthanks"
100+
}
101+
}
102+
```

0 commit comments

Comments
 (0)