backend/hafas: make productName optional
Some legs do not specify a productName.
This commit is contained in:
parent
2358601d89
commit
77d5944aa2
|
@ -29,8 +29,8 @@ type
|
||||||
HafasProdCtx* = object
|
HafasProdCtx* = object
|
||||||
name*: string
|
name*: string
|
||||||
num*: string
|
num*: string
|
||||||
catOut*: string
|
catOut*: Option[string]
|
||||||
catOutL*: string
|
catOutL*: Option[string]
|
||||||
lineId*: Option[string]
|
lineId*: Option[string]
|
||||||
|
|
||||||
HafasProd* = object
|
HafasProd* = object
|
||||||
|
|
|
@ -83,8 +83,8 @@ type
|
||||||
mode*: Mode
|
mode*: Mode
|
||||||
product*: Product
|
product*: Product
|
||||||
tripNum*: string
|
tripNum*: string
|
||||||
productName*: string
|
productName*: Option[string]
|
||||||
fullProductName*: string
|
fullProductName*: Option[string]
|
||||||
operator*: Option[Operator]
|
operator*: Option[Operator]
|
||||||
additionalName*: Option[string]
|
additionalName*: Option[string]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue