Skip to content

Commit ec2fded

Browse files
committed
feat(tutorial): Add definition schema for street tutorial
1 parent f261606 commit ec2fded

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

functions/definition/tutorial/street.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ FbStreetTutorial:
1010
type:
1111
type: literal
1212
value: 7
13-
zoomLevel:
14-
type: int
15-
deprecated: true
1613
customOptions:
1714
optional: true
1815
type:
@@ -24,6 +21,10 @@ FbStreetTutorialTask:
2421
type:
2522
type: object
2623
fields:
24+
projectId:
25+
type: string
26+
groupId:
27+
type: int
2728
taskId:
2829
type: string
2930
geometry: # NOTE: geometry as WKT

functions/generated/pyfirebase/pyfirebase_mapswipe/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,6 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
10571057

10581058
class FbStreetTutorial(TypesyncModel):
10591059
projectType: typing.Literal[7]
1060-
zoomLevel: typing.Annotated[int, pydantic.Field(deprecated=True)]
10611060
customOptions: list[FbObjCustomOption] | TypesyncUndefined | None = UNDEFINED
10621061

10631062
class Config:
@@ -1072,6 +1071,8 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
10721071

10731072

10741073
class FbStreetTutorialTask(TypesyncModel):
1074+
projectId: str
1075+
groupId: int
10751076
taskId: str
10761077
geometry: str
10771078
referenceAnswer: int

0 commit comments

Comments
 (0)