Hello,
thanks for the nice ActivityPub meeting.
There are some initial findings and I made a CodeSandbox to play with it. Forgive me, I know it is a WIP …
In the README.md it is missing the import "reflect-metadata"; line.
Also it seems to act async and have the array of errors in the promise resolution (?)
validate(note).then(update);
- As you can see in the codesandbox, it somehow assumes that the
name property is required but I think it is not.
- Should pass (name is not required) but does not
{
type: "Object",
id: "https://yuforium.com/users/chris/note-123"
}
- It is superimportant that the
type property can be an Array.
- Many things can be Arrays in ActivityStreams …
- Should pass (type can be an Array) but does not
{
type: ["Article", "schema:NewsArticle"],
id: "https://yuforium.com/users/chris/note-123",
name: "with name",
}
- properties which are marked as
functional can't be an Array.

- Should NOT pass (latitude must be functional) but does pass
{
type: "Object",
id: "https://yuforium.com/users/chris/note-123",
name: "with name",
latitude: [4.4]
}
Hello,
thanks for the nice ActivityPub meeting.
There are some initial findings and I made a CodeSandbox to play with it. Forgive me, I know it is a WIP …
In the
README.mdit is missing theimport "reflect-metadata";line.Also it seems to act async and have the array of errors in the promise resolution (?)
nameproperty is required but I think it is not.typeproperty can be an Array.functionalcan't be an Array.