[fix] limit the size of the invoice description to 640 characters (#3045)

This commit is contained in:
Vlad Stan
2025-03-12 16:29:29 +02:00
committed by GitHub
parent 475ae5736e
commit b8a5f3942c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class CreateInvoice(BaseModel):
internal: bool = False
out: bool = True
amount: float = Query(None, ge=0)
memo: str | None = None
memo: str | None = Query(None, max_length=640)
description_hash: str | None = None
unhashed_description: str | None = None
expiry: int | None = None