@evan @jasnell Why are empty arrays not allowed in Activity Streams 2.0?
Conversation
Notices
-
Embed this notice
Steve Bate (steve@social.technoetic.com)'s status on Monday, 23-Oct-2023 22:42:37 JST Steve Bate -
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Monday, 23-Oct-2023 22:42:34 JST Evan Prodromou @steve @jasnell I can't remember, but I think it was an issue with JSON-LD not being able to represent empty arrays well/at all?
-
Embed this notice
Steve Bate (steve@social.technoetic.com)'s status on Monday, 23-Oct-2023 23:37:52 JST Steve Bate @evan @jasnell Thanks. It looks like they are included in the JSON-LD expansion, but not when converting to RDF (unless declared at "@list", which makes sense). I just checked, and the JSON-LD 1.0 specification states that an array "is represented as square brackets surrounding zero or more values", so an empty array appears valid (same for 1.1). That's why I was curious about the rationale for the AS2 specification having the additional constraint. (context: working on AS2 validator code)
-
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Monday, 23-Oct-2023 23:37:52 JST Evan Prodromou
-
Embed this notice