w3c / activitystreams

Activity Streams 2.0
https://www.w3.org/TR/activitystreams-core/
Other
276 stars 60 forks source link

`href` should be `@type: xsd:anyURI` in the context document #595

Open trwnh opened 2 months ago

trwnh commented 2 months ago

https://github.com/w3c/activitypub/issues/375#issuecomment-2082777919

In the AS2-Vocab normative recommendation, href is defined to always be xsd:anyURI

In the AS2 context document, it is not defined as such

Conclusion: Make the context document consistent with the normative spec

evanp commented 2 months ago

This seems like a good idea to make a direct change to the context document.

The Activity Vocabulary clearly gives the type for href. The context document has a similar but not identical type. The hole that that opens, namely including an Object or Link as the href value, is so clearly outside the intention of the property that it should not be a problem to close up this hole.

I'd recommend making a change to the context document to reflect the text correctly.