Closed francisli closed 6 years ago
Nevermind, per the description of Properties:
Items not marked as "Functional" can have multiple values.
And, I'm seeing the effects of JSON-LD compaction here (from single object array to object), posting the link in case anyone else has similar questions:
Please Indicate One:
Please Describe the Issue:
Hello, I'm trying to understand how one should expect an object or array for a property. For example, the attachment property (https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attachment) is shown in Example 66 as having an array with one object:
I presume that this means that the attachment property can have multiple objects, correct? Would it be invalid to serialize this as simply an object? I.e:
The reason I ask is because other properties show this, such as preview (https://www.w3.org/TR/activitystreams-vocabulary/#dfn-preview) in Example 102:
Is it acceptable to have multiple previews referenced in an array?
In both cases, both attachment and preview, the Range is specified as simply "Object | Link". Are we to expect that for all properties with this Range, that they may either be a single object or an array of one or more objects?
Thanks for any clarification...