Commit 11174a7 1 parent 596d137 commit 11174a7 Copy full SHA for 11174a7
File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ scenes:
65
65
color : " #ffcb7d"
66
66
- legend_id : " Administration"
67
67
color : " #6d9bde"
68
- description : " 423 — Rector's office\n 424 — Director's office"
68
+ legend : " 423 — Rector's office\n 424 — Director's office"
69
69
- legend_id : " Recruitment"
70
70
color : " #de766d"
71
- description : " 433 — Recruitment sector\n 455 — Human resources department"
71
+ legend : " 433 — Recruitment sector\n 455 — Human resources department"
72
72
- scene_id : " university-floor-5"
73
73
svg_file : " university-floor-5.svg"
74
74
title : " Floor 5"
Original file line number Diff line number Diff line change @@ -17,30 +17,35 @@ $defs:
17
17
title : Accounts
18
18
type : object
19
19
Area :
20
+ additionalProperties : false
20
21
properties :
21
22
svg_polygon_id :
22
23
anyOf :
23
24
- type : string
24
25
- type : ' null'
25
26
default : null
27
+ description : ID of the polygon in the SVG
26
28
title : Svg Polygon Id
27
29
title :
28
30
anyOf :
29
31
- type : string
30
32
- type : ' null'
31
33
default : null
34
+ description : Title of the area
32
35
title : Title
33
36
legend_id :
34
37
anyOf :
35
38
- type : string
36
39
- type : ' null'
37
40
default : null
41
+ description : ID of the legend (if any)
38
42
title : Legend Id
39
43
description :
40
44
anyOf :
41
45
- type : string
42
46
- type : ' null'
43
47
default : null
48
+ description : Description of the area
44
49
title : Description
45
50
title : Area
46
51
type : object
@@ -51,45 +56,55 @@ $defs:
51
56
title : Environment
52
57
type : string
53
58
LegendEntry :
59
+ additionalProperties : false
54
60
properties :
55
61
legend_id :
62
+ description : ID of the legend
56
63
title : Legend Id
57
64
type : string
58
65
color :
59
66
anyOf :
60
67
- type : string
61
68
- type : ' null'
62
69
default : null
70
+ description : Color of the legend
63
71
title : Color
64
72
legend :
65
73
anyOf :
66
74
- type : string
67
75
- type : ' null'
68
76
default : null
77
+ description : Description of the legend (may contain multiple lines)
69
78
title : Legend
70
79
required :
71
80
- legend_id
72
81
title : LegendEntry
73
82
type : object
74
83
Scene :
84
+ additionalProperties : false
75
85
properties :
76
86
scene_id :
87
+ description : ID of the scene
77
88
title : Scene Id
78
89
type : string
79
90
title :
91
+ description : Title of the scene
80
92
title : Title
81
93
type : string
82
94
svg_file :
95
+ description : Path to the SVG file in /static
83
96
title : Svg File
84
97
type : string
85
98
legend :
86
99
default : []
100
+ description : Legend of the scene
87
101
items :
88
102
$ref : ' #/$defs/LegendEntry'
89
103
title : Legend
90
104
type : array
91
105
areas :
92
106
default : []
107
+ description : Areas of the scene
93
108
items :
94
109
$ref : ' #/$defs/Area'
95
110
title : Areas
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class SettingBaseModel(BaseModel):
14
14
model_config = ConfigDict (use_attribute_docstrings = True , extra = "forbid" )
15
15
16
16
17
- class LegendEntry (BaseModel ):
17
+ class LegendEntry (SettingBaseModel ):
18
18
legend_id : str
19
19
"ID of the legend"
20
20
color : str | None = None
@@ -29,7 +29,7 @@ def set_legend_as_legend_id(self):
29
29
return self
30
30
31
31
32
- class Area (BaseModel ):
32
+ class Area (SettingBaseModel ):
33
33
svg_polygon_id : str | None = None
34
34
"ID of the polygon in the SVG"
35
35
title : str | None = None
@@ -40,7 +40,7 @@ class Area(BaseModel):
40
40
"Description of the area"
41
41
42
42
43
- class Scene (BaseModel ):
43
+ class Scene (SettingBaseModel ):
44
44
scene_id : str
45
45
"ID of the scene"
46
46
title : str
You can’t perform that action at this time.
0 commit comments