From 7335f5274282944e36eba40f12ad69575f6270c7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 20 Dec 2024 12:22:44 -0500 Subject: [PATCH] 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 24ed307..3656754 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -80,3 +80,27 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a - 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`. - 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 + } + } + } + ```