warriordog / ActivityPubSharp

Modular implementation of ActivityPub in C#
https://warriordog.github.io/ActivityPubSharp/
Mozilla Public License 2.0
46 stars 10 forks source link

Project 1: serialization includes base AS types #83

Closed warriordog closed 1 year ago

warriordog commented 1 year ago

Currently, serializing something like MentionLink will produce an object with "type": ["Link", "Mention"]. The Link should be stripped in favor of just Mention.

warriordog commented 1 year ago

Solution:

  1. New [ExtendsOtherEntityAttribute] that works like [ImpliesOtherEntityAttribute], but replaces it on serialization.
  2. All existing uses swap to extends.
warriordog commented 1 year ago

Minimal implementation is now pushed. It needs a refactor based on virtual members and/or interfaces.

warriordog commented 1 year ago

Cleaner implementation is now pushed.