-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Spec does not clarify non-functional natural language values when mapped #443
Comments
[ edit, became clear by 437 comment ]
When I was initially reading the vocabulary document I was also unaware that e.g. |
@cjslep please also note for How should This does not even allow me to mix e.g. html and markdown content … |
Is this what you mean?
How do we interpret the multiple values of I do believe this is a good bug. I think the quickest thing we could do is at least to add to that description of 'mediaType'.
Separately...
or, honestly, just allow Links in the range of Content, so allow
And then deprecate 'mediaType' on Objects. Could use editorial feedback @cwebber |
@gobengo This is exactly what I meant. I would go for the "best solution" 😁 See e.g. how e.g. JSON Schema spec. deals with it The default could be {
"content": "foo",
"encoding": "8bit",
"mediaType": "text/html"
} but it could also be an image {
"content": "bar",
"encoding": "base64",
"mediaType": "image/png"
} where contentEncoding can be RFC 2045 @cjslep fyi: Made JSON Schemas https://github.com/redaktor/ActivityPubSchema |
I think we want the same thing. I think there's work to be done to clarify what the 'range' of 'content' should be. |
The Vocabulary document does not specify that these properties are "functional", but it does refer to the properties in the singular as part of the definitions. For example,
None of the examples have multiple values for these properties, and there is no guidance on how consumers should handle multiple values here. I think the resolution for this problem is to include the Functional flag for these properties in the ERRATA, and to document a best practice for dealing with multiple values if found. |
Please Indicate One:
Please Describe the Issue:
In https://www.w3.org/TR/activitystreams-core/#naturalLanguageValues the language mapped forms are examplified:
An example provided is Example 22:
However, according to https://www.w3.org/TR/activitystreams-vocabulary/#properties none of the above properties are marked 'functional':
name
,summary
, andcontent
. Thus, having multiple values for these properties is valid.Therefore, the following message is within spec:
However, the spec does not describe how this should be handled in map form, if at all. Two options that would handle it include:
and
And another implementation could ignore these altogether as being "unhandled", and all three could be able to claim to follow the spec due to the lack of guidance.
The text was updated successfully, but these errors were encountered: