Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions functions/definition/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ FbUser:
type:
type: map
valueType: unknown
teamId:
optional: true
type: string

FbUserContribution:
model: alias
Expand Down
5 changes: 4 additions & 1 deletion functions/generated/pyfirebase/pyfirebase_mapswipe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TypesyncUndefined:
def __init__(self):
if TypesyncUndefined._instance is not None:
raise RuntimeError(
"TypesyncUndefined instances cannot be created directly. Import and use the UNDEFINED sentinel instead.",
"TypesyncUndefined instances cannot be created directly. Import and use the UNDEFINED sentinel instead."
)
TypesyncUndefined._instance = self

Expand Down Expand Up @@ -639,6 +639,7 @@ class FbUser(TypesyncModel):
usernameKey: str
accessibility: TypesyncUndefined | bool = UNDEFINED
userGroups: TypesyncUndefined | dict[str, typing.Any] = UNDEFINED
teamId: TypesyncUndefined | str = UNDEFINED

class Config:
use_enum_values = True
Expand All @@ -649,6 +650,8 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
raise ValueError("'accessibility' field cannot be set to None")
if name == "userGroups" and value is None:
raise ValueError("'userGroups' field cannot be set to None")
if name == "teamId" and value is None:
raise ValueError("'teamId' field cannot be set to None")
super().__setattr__(name, value)


Expand Down
Loading