Skip to content

some findings #1

@sebilasse

Description

@sebilasse

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.
  1. 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 …
  1. 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.

Bildschirmfoto 2022-02-16 um 13 55 57

  1. 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]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions