Closed flomonster closed 1 week ago
Why is the back returning "P0D" for stop_for when we send it "PT0S" ? In front, we are testing that stop_for looks like "PTxxx" (PT0S, PT5M30S, PT6H...) like all examples in doc :
P0D
is a valid duration. The front end should use a library to handle the deserialization of duration.
dayjs, which is already installed on osrd, can do that so I will use it.
What happened?
When a train schedule is created with a stop at
0s
, the front end crashesWhat did you expect to happen?
It should create a stop of
0
s and still work.How can we reproduce it (as minimally and precisely as possible)?
0
s to the last stepHere is what the train schedule payload looks likes (could be use for import):
What operating system, browser and environment are you using?
OSRD version (top right corner
Account
button >Informations
)d9655c0f05166faff80f744efe979a921347777f