Skip to content
Merged
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
6 changes: 6 additions & 0 deletions functions/definition/organisation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ FbOrganisation:
name:
type: string
description:
optional: true
type: string
nameKey: # NOTE: this is deprecated
type: string
abbreviation:
optional: true
type: string
isArchived: # This was added on revamp
type: boolean
8 changes: 7 additions & 1 deletion functions/generated/pyfirebase/pyfirebase_mapswipe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,14 +670,20 @@ class FbOrganisation(TypesyncModel):
"""Represents the requesting organisation."""

name: str
description: str
description: TypesyncUndefined | str = UNDEFINED
nameKey: str
abbreviation: TypesyncUndefined | str = UNDEFINED
isArchived: bool

class Config:
use_enum_values = True
extra = "forbid"

def __setattr__(self, name: str, value: typing.Any) -> None:
if name == "description" and value is None:
raise ValueError("'description' field cannot be set to None")
if name == "abbreviation" and value is None:
raise ValueError("'abbreviation' field cannot be set to None")
super().__setattr__(name, value)


Expand Down