File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,17 @@ class OpenSkiMapStatus(StrEnum):
25
25
abandoned = "abandoned"
26
26
27
27
28
+ class SkiRunConvention (StrEnum ):
29
+ """
30
+ Convention for the ski run difficulty coloring.
31
+ See <https://github.com/russellporter/openskidata-format/blob/e421ef0a0814437c362611e07cb43c32bac4172c/src/Run.ts#L113>.
32
+ """
33
+
34
+ north_america = "north_america"
35
+ europe = "europe"
36
+ japan = "japan"
37
+
38
+
28
39
class SkiRunDifficulty (StrEnum ):
29
40
"""
30
41
https://wiki.openstreetmap.org/wiki/Key:piste:difficulty
@@ -277,7 +288,7 @@ class RunModel(Model): # type: ignore [misc]
277
288
Field (description = "OpenSkiMap difficulty rating for the run." ),
278
289
]
279
290
run_convention : Annotated [
280
- Literal [ "north_america" , "europe" , "japan" ] | None ,
291
+ SkiRunConvention | None ,
281
292
Field (description = "OpenSkiMap convention for the run." ),
282
293
]
283
294
ski_area_ids : Annotated [
@@ -424,7 +435,7 @@ class SkiAreaModel(Model): # type: ignore [misc]
424
435
),
425
436
]
426
437
osm_run_convention : Annotated [
427
- Literal [ "japan" , "europe" , "north_america" ] ,
438
+ SkiRunConvention ,
428
439
Field (description = "OpenSkiMap convention for the runs in the ski area." ),
429
440
]
430
441
osm_status : OpenSkiMapStatus | None = Field (
You can’t perform that action at this time.
0 commit comments