mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
d8c28c9998
The v1 bodies were cast to their types unchecked, so a flight page whose data was not a list, or a passenger list of another shape, failed deeper down as a TypeError instead of an AirTrail request error. Each v1 answer (a flight, a page of flights, a created flight, a reference lookup, the key owner) is now read through a small schema that keeps the fields TREK does not need lenient. The legacy save refuses an arrival before the departure; the v1 body passed it on, so an overnight arrival time without its date would have been stored before the departure. The v1 write-back now refuses it with the same message.