summaryrefslogtreecommitdiff
path: root/schema.yml
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-11 22:09:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-11 22:09:32 +0100
commit985001e8b4fff4b2c7dcf3ebd8d26a178e1cf561 (patch)
tree63ea196307cd6b01a7a19ca71eff5207c0860817 /schema.yml
parentaaee1881495d0e5bae0e4027b48d2d62d6d5c0f1 (diff)
filter train duplicates by valid date range
Diffstat (limited to 'schema.yml')
-rw-r--r--schema.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/schema.yml b/schema.yml
index 0cbc85d..b7542f9 100644
--- a/schema.yml
+++ b/schema.yml
@@ -38,7 +38,12 @@ components:
description: ISO 8601 interval describing when this train composition dataset is valid
train:
type: object
- description: dict mapping train numbers to train objects
+ description: dict mapping train numbers to probably valid train objects
+ additionalProperties:
+ $ref: '#/components/schemas/train'
+ train_variants:
+ type: object
+ description: dict mapping train numbers to list of possible train objects
additionalProperties:
type: array
items: