Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that as:object can also be an as:Offer in case of accept/reject #32

Open
mielvds opened this issue Apr 5, 2023 · 1 comment

Comments

@mielvds
Copy link
Contributor

mielvds commented Apr 5, 2023

At 5.3. AS2 object, the spec says
For as:object, one of the core [Object Types](https://www.w3.org/TR/activitystreams-core/#object-types) MUST be expressed. In addition to these [Object Types](https://www.w3.org/TR/activitystreams-core/#object-types), types ([[URI]](https://www.eventnotifications.net/#biblio-uri)s) originating from vocabularies chosen by an application domain MAY be specified.

However, this is not true for as:Accept and as:Reject where the object must be an as:Offer

@paulwalk
Copy link

This raises the more general question: should the specification determine the JSON type that is acceptable - e.g. in the example most as:object will use an array type for its type property, whereas as:Accept and as:Reject use a string (as:Offer) for the type property.

Over at COAR Notify, the implementers are getting confused by this. They expect a specification to determine types (in the sense of "data types" rather than "semantic types"). But, as we discussed a year ago, Linked Data is looser than that, and perhaps the implementers need to programme more defensively, to expect different data types to be used in different circumstances...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants