mirror of
https://github.com/element-hq/synapse
synced 2024-07-05 15:03:34 +00:00
More optional
This commit is contained in:
parent
aee594adf8
commit
2863fbadcc
0
synapse/handlers/sliding_sync_handler.py
Normal file
0
synapse/handlers/sliding_sync_handler.py
Normal file
|
@ -829,9 +829,9 @@ class SlidingSyncBody(RequestBodyModel):
|
|||
lists: Optional[List[StrictStr]]
|
||||
rooms: Optional[List[StrictStr]]
|
||||
|
||||
lists: Dict[constr(max_length=64, strict=True), SlidingSyncList]
|
||||
room_subscriptions: Dict[StrictStr, RoomSubscription]
|
||||
extensions: Dict[StrictStr, Extension]
|
||||
lists: Optional[Dict[constr(max_length=64, strict=True), SlidingSyncList]]
|
||||
room_subscriptions: Optional[Dict[StrictStr, RoomSubscription]]
|
||||
extensions: Optional[Dict[StrictStr, Extension]]
|
||||
|
||||
@validator("lists")
|
||||
def lists_length_check(cls, v):
|
||||
|
|
Loading…
Reference in a new issue