@@ -10,8 +10,8 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
10
10
11
11
- Example 150 has ` latitude ` and ` longitude ` properties with string values.
12
12
The range of these properties is ` xsd:float ` . A correct example would be:
13
-
14
- ``` json
13
+
14
+ ``` json
15
15
{
16
16
"@context" : " https://www.w3.org/ns/activitystreams" ,
17
17
"type" : " Place" ,
@@ -20,4 +20,58 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
20
20
"latitude" : 37.7833
21
21
}
22
22
```
23
-
23
+
24
+ - Example 80 has `Image` objects with `width` and `height` properties, which
25
+ are only allowed on `Link` objects. One alternative is to use `Link` objects
26
+ with the correct `height` and `width` as the `url` property for each `Image`
27
+ object.
28
+
29
+ ```json
30
+ {
31
+ "@context" : " https://www.w3.org/ns/activitystreams" ,
32
+ "summary" : " A simple note" ,
33
+ "type" : " Note" ,
34
+ "content" : " A simple note" ,
35
+ "icon" : [
36
+ {
37
+ "type" : " Image" ,
38
+ "summary" : " Note (16x16)" ,
39
+ "url" : {
40
+ "type" : " Link" ,
41
+ "href" : " http://example.org/note1.png" ,
42
+ "width" : 16 ,
43
+ "height" : 16
44
+ }
45
+ },
46
+ {
47
+ "type" : " Image" ,
48
+ "summary" : " Note (32x32)" ,
49
+ "url" : {
50
+ "type" : " Link" ,
51
+ "href" : " http://example.org/note2.png" ,
52
+ "width" : 32 ,
53
+ "height" : 32
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ ```
59
+
60
+ - The range of the `units` property is given as an enumerated set of values.
61
+ Due to a formatting error, some of these values are shown with an incorrect
62
+ leading space character. The correct range is:
63
+
64
+ ```text
65
+ " cm" | "feet" | "inches" | "km" | "m" | "miles" | xsd:anyURI
66
+
67
+ - Example 58 includes a `summary` property on a `Mention` object, which is
68
+ not allowed. A corrected example:
69
+
70
+ ```json
71
+ {
72
+ "@context" : " https://www.w3.org/ns/activitystreams" ,
73
+ "type" : " Mention" ,
74
+ "href" : " http://example.org/joe" ,
75
+ "name" : " Joe"
76
+ }
77
+ ```
0 commit comments