Serialize links for books

This commit is contained in:
Mouse Reeve
2021-12-15 17:10:59 -08:00
parent 86b294afd7
commit 5c99f142f9
5 changed files with 45 additions and 30 deletions

View File

@ -15,6 +15,11 @@ class PublicKey(ActivityObject):
publicKeyPem: str
type: str = "PublicKey"
def serialize(self, **kwargs):
"""remove fields"""
omit = ("type", "@context")
return super().serialize(omit=omit)
# pylint: disable=invalid-name
@dataclass(init=False)