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
4 changes: 4 additions & 0 deletions functions/definition/tutorial/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ FbBaseTutorial:
tutorialDraftId:
type: string
deprecated: true
screens:
type:
type: list
elementType: FbScreen

FbBaseTutorialGroup:
model: alias
Expand Down
36 changes: 0 additions & 36 deletions functions/definition/tutorial/compare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,12 @@ FbCompareTutorial:
type: FbObjRasterTileServer
zoomLevel:
type: int
screens:
type:
type: list
elementType: FbScreen

FbCompareTutorialGroup:
model: alias
type:
type: object
fields:
xMax:
type: int
xMin:
type: int
yMax:
type: int
yMin:
type: int

FbCompareTutorialTask:
model: alias
type:
type: object
fields:
geometry: # NOTE: initially empty string
type: string
groupId:
type: int
projectId:
type: string
referenceAnswer:
type: int
screen:
type: int
taskId:
type: string
taskId_real:
type: string
taskX:
type: int
taskY:
type: int
url:
type: string
urlB:
Expand Down
36 changes: 0 additions & 36 deletions functions/definition/tutorial/completeness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,12 @@ FbCompletenessTutorial:
type: FbObjUnifiedOverlayTileServer
zoomLevel:
type: int
screens:
type:
type: list
elementType: FbScreen

FbCompletenessTutorialGroup:
model: alias
type:
type: object
fields:
xMax:
type: int
xMin:
type: int
yMax:
type: int
yMin:
type: int

FbCompletenessTutorialTask:
model: alias
type:
type: object
fields:
geometry: # NOTE: initially empty string
type: string
groupId:
type: int
projectId:
type: string
referenceAnswer:
type: int
screen:
type: int
taskId:
type: string
taskId_real:
type: string
taskX:
type: int
taskY:
type: int
url:
type: string
urlB:
Expand Down
36 changes: 0 additions & 36 deletions functions/definition/tutorial/find.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,11 @@ FbFindTutorial:
type: FbObjRasterTileServer
zoomLevel:
type: int
screens:
type:
type: list
elementType: FbScreen

FbFindTutorialGroup:
model: alias
type:
type: object
fields:
xMax:
type: int
xMin:
type: int
yMax:
type: int
yMin:
type: int

FbFindTutorialTask:
model: alias
type:
type: object
fields:
geometry: # NOTE: initially empty string
type: string
groupId:
type: int
projectId:
type: string
referenceAnswer:
type: int
screen:
type: int
taskId:
type: string
taskId_real:
type: string
taskX:
type: int
taskY:
type: int
url:
type: string
37 changes: 37 additions & 0 deletions functions/definition/tutorial/tileMapService.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FbTileMapServiceTutorialGroup:
model: alias
type:
type: object
fields:
xMax:
type: int
xMin:
type: int
yMax:
type: int
yMin:
type: int

FbTileMapServiceTutorialTask:
model: alias
type:
type: object
fields:
geometry: # NOTE: initially empty string
type: string
groupId:
type: int
projectId:
type: string
referenceAnswer:
type: int
screen:
type: int
taskId:
type: string
taskId_real:
type: string
taskX:
type: int
taskY:
type: int
25 changes: 9 additions & 16 deletions functions/definition/tutorial/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ FbValidateTutorial:
type:
type: object
fields:
inputGeometries: # NOTE: local path to geometry file
# NOTE: local path to geometry file
inputGeometries:
type: string
deprecated: true
projectType:
type:
type: literal
Expand All @@ -15,10 +17,7 @@ FbValidateTutorial:
type: FbObjRasterTileServer
zoomLevel:
type: int
screens:
type:
type: list
elementType: FbScreen
deprecated: true
customOptions:
optional: true
type:
Expand All @@ -30,14 +29,12 @@ FbValidateTutorialTaskProperties:
type:
type: object
fields:
building:
type: string
description:
type: string
reference:
type: string # NOTE: not sure if this is int or string
id:
type: int
screen:
type: string # NOTE: not sure if this is int or string
type: int
reference:
type: int

FbValidateTutorialTask:
model: alias
Expand All @@ -50,9 +47,5 @@ FbValidateTutorialTask:
type: unknown
properties:
type: FbValidateTutorialTaskProperties
screen:
type: int
reference:
type: int
geometry: # NOTE: geometry as WKT
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class FbProject(
class Config: # type: ignore[reportIncompatibleVariableOverride]
use_enum_values = False
frozen = True
# NOTE: We need to allow extra fields as FbProject
# is not a complete project representation
extra = "allow"
extra = "forbid"


class FbMappingGroup(
Expand Down Expand Up @@ -48,3 +46,33 @@ class Config: # type: ignore[reportIncompatibleVariableOverride]
use_enum_values = False
frozen = True
extra = "forbid"


class FbFindTutorialTaskComplete(
models.FbTileMapServiceTutorialTask,
models.FbFindTutorialTask,
):
class Config: # type: ignore[reportIncompatibleVariableOverride]
use_enum_values = True
frozen = True
extra = "forbid"


class FbCompareTutorialTaskComplete(
models.FbTileMapServiceTutorialTask,
models.FbCompareTutorialTask,
):
class Config: # type: ignore[reportIncompatibleVariableOverride]
use_enum_values = True
frozen = True
extra = "forbid"


class FbCompletenessTutorialTaskComplete(
models.FbTileMapServiceTutorialTask,
models.FbCompletenessTutorialTask,
):
class Config: # type: ignore[reportIncompatibleVariableOverride]
use_enum_values = True
frozen = True
extra = "forbid"
Loading