diff --git a/src/server.py b/src/server.py index da0f36e..5e3eaab 100644 --- a/src/server.py +++ b/src/server.py @@ -22,7 +22,7 @@ class TruthPayload(BaseModel): """Represents a truth. This can be used to both create and get truths.""" id: str content: str - author: typing.Literal["trump", "tate"] = Field(pattern=r"^(trump|tate)$") + author: str timestamp: float = Field(default_factory=time.time, ge=0) extra: typing.Optional[JSON] = None """Any extra information, JSON compliant, can be entered here."""