From c310fed50ab36a7656e8595a700c1ed7a46f3731 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 20 Dec 2024 12:22:44 -0500 Subject: [PATCH 1/2] 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. --- ERRATA.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index c915712..900a3ca 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -108,6 +108,30 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a - The domain of the `attributedTo` property is both `Link` and `Object`. `attributedTo` should be included in the list of properties of a `Link`. + - Example 79 has an `Image` object with `width` and `height` properties, which + are only allowed on `Link` objects. One alternative is to use a `Link` object + with the correct `height` and `width` as the `url` property for each `Image` + object. + + ```json + { + "@context": "https://www.w3.org/ns/activitystreams", + "summary": "A simple note", + "type": "Note", + "content": "This is all there is.", + "icon": { + "type": "Image", + "name": "Note icon", + "url": { + "href": "http://example.org/note.png", + "type": "Link", + "width": 16, + "height": 16 + } + } + } + ``` + - 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." - 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." From 3c586991c61b8f05d86942774858552e44eea6b0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 3 Oct 2025 12:43:35 -0400 Subject: [PATCH 2/2] Better description of width and height props on non-link objects Accept @bengo 's update Co-authored-by: Benjamin Goering <171782+gobengo@users.noreply.github.com> --- ERRATA.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ERRATA.md b/ERRATA.md index 900a3ca..337fdf4 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -109,7 +109,7 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a - The domain of the `attributedTo` property is both `Link` and `Object`. `attributedTo` should be included in the list of properties of a `Link`. - Example 79 has an `Image` object with `width` and `height` properties, which - are only allowed on `Link` objects. One alternative is to use a `Link` object + only indicate `Link` in their Domain. One alternative is to use a `Link` object with the correct `height` and `width` as the `url` property for each `Image` object.