From c60927de02d693d8d673ecef24d1b71df213ee87 Mon Sep 17 00:00:00 2001 From: Aleksey Sysoev Date: Wed, 3 Jun 2026 23:41:29 +0700 Subject: [PATCH] fix(types): make ElementAttributes.url optional Animoji/sticker elements arrive from the server without a `url` field, so the strict `url: str` validation raises ValidationError and breaks login sync. The server returns such elements without `url`, so the model is stricter than the protocol itself. --- src/pymax/types/domain/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymax/types/domain/element.py b/src/pymax/types/domain/element.py index 8a285fc..ae39e09 100644 --- a/src/pymax/types/domain/element.py +++ b/src/pymax/types/domain/element.py @@ -4,7 +4,7 @@ class ElementAttributes(CamelModel): - url: str + url: str | None = None class Element(CamelModel):