summaryrefslogtreecommitdiff
path: root/schema.yml
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-21 18:27:36 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-21 18:27:36 +0100
commit0a89a0a4938b369a75ddbae16fc530cc8cb7c7f9 (patch)
treee2c0f09dd061515dbf936cb8ab5c9378ba7e342a /schema.yml
parent9c0d9035d1ec339da1c4fa885b1f7ffaff0d9f59 (diff)
parse train attributes
Diffstat (limited to 'schema.yml')
-rw-r--r--schema.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/schema.yml b/schema.yml
index 87746aa..3fc21ec 100644
--- a/schema.yml
+++ b/schema.yml
@@ -66,6 +66,12 @@ components:
description: true if this is an empty train without passenger service ("Leerfahrt")
route:
$ref: '#/components/schemas/route'
+ commonAttr:
+ $ref: '#/components/schemas/trainAttr'
+ attrVariants:
+ type: array
+ items:
+ $ref: '#/components/schemas/trainAttr'
cycle:
$ref: '#/components/schemas/cycle'
hasWagon:
@@ -94,6 +100,32 @@ components:
postEnd:
type: string
description: station where the train is parked
+ trainAttr:
+ type: object
+ properties:
+ brakingPercentage:
+ type: integer
+ example: 177
+ description: Bremshundertstel
+ length:
+ type: integer
+ example: 402
+ description: train length (including powercar)
+ series:
+ type: string
+ example: "406"
+ description: powercar series
+ series2:
+ type: string
+ description: series of second powercar (if present)
+ station:
+ type: string
+ example: "FF"
+ description: DS100 station code, details unknown
+ vmax:
+ type: integer
+ example: 300
+ description: rated maximum speed in km/h
cycle:
type: object
properties: