From f6498f4952b1b64ebeebb594ee8410713211a4f5 Mon Sep 17 00:00:00 2001 From: mhh Date: Mon, 27 Nov 2023 15:20:27 +0100 Subject: [PATCH] Add tags field to all messages (Issue #52) --- aleph_message/models/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aleph_message/models/__init__.py b/aleph_message/models/__init__.py index 045a8f2..9e2074b 100644 --- a/aleph_message/models/__init__.py +++ b/aleph_message/models/__init__.py @@ -216,6 +216,9 @@ class BaseMessage(BaseModel): ) item_hash: ItemHash = Field(description="Hash of the content (sha256 by default)") content: BaseContent = Field(description="Content of the message, ready to be used") + tags: Optional[List[str]] = Field( + default=None, description="Tags associated with the message" + ) forgotten_by: Optional[List[str]]