Open highsource opened 8 years ago
Bei JourneyDetail ( Names ) scheint es ja so zu sein das dort auch eine Liste von Name enthalten sein kann, daher währe es sinnvoll eine Liste mit einem Element zu übergeben, um bei der Verarbeiten nicht unterscheiden zu müssen ob es ein Element ist oder eine Liste mit Elementen. Dies gilt auch für andere Felder.
http://data.deutschebahn.com/apis/fahrplan/#comment-2538938311
+1 This is critical. It's pretty difficult to work around this. I think this affects all array attributes in the API.
Absolutely.
And the swagger code generated files are obsolete then…
The probably comes from XML ->JSON conersion:
If there's just one
Note
, it is output as a single item, in case there are many, as an array. This makes this structure undeterministic and harder to work with.Please output element lists always as lists, regardless of whether they have one element or many: