Skip to content

Commit bc057fc

Browse files
committed
feat(tutorial): Make lookFor non-mandatory in tutorials
1 parent 2e5c0ed commit bc057fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

functions/definition/tutorial/common.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ FbBaseTutorial:
8888
optional: true
8989
lookFor:
9090
type: string
91+
optional: true
9192
name:
9293
type: string
9394
progress:

functions/generated/pyfirebase/pyfirebase_mapswipe/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ class FbBaseTutorial(TypesyncModel):
753753
] = UNDEFINED
754754
contributorCount: int
755755
informationPages: list[FbInformationPage] | TypesyncUndefined | None = UNDEFINED
756-
lookFor: str
756+
lookFor: str | TypesyncUndefined | None = UNDEFINED
757757
name: str
758758
progress: int
759759
projectDetails: str
@@ -775,6 +775,8 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
775775
raise ValueError("'exampleImage2' field cannot be set to None")
776776
if name == "informationPages" and value is None:
777777
raise ValueError("'informationPages' field cannot be set to None")
778+
if name == "lookFor" and value is None:
779+
raise ValueError("'lookFor' field cannot be set to None")
778780
if name == "screens" and value is None:
779781
raise ValueError("'screens' field cannot be set to None")
780782
super().__setattr__(name, value)

0 commit comments

Comments
 (0)