fix(models): restore check_in/check_out on AvailabilityQuery #20

Merged
padreug merged 1 commit from fix/availability-query-fields into main 2026-09-21 09:03:32 +00:00

1 commit

Author SHA1 Message Date
64607a00bc fix(models): restore check_in/check_out on AvailabilityQuery
v0.4.0's merge of public_booking_dict landed inside AvailabilityQuery and
left the two date fields orphaned after the helper's return, so
POST /api/v1/availability raised AttributeError on q.check_in (500) on
every install of that version. The RPC door reads the raw body and was
unaffected, which is why nothing noticed.

Put the helper next to public_room_dict and add a regression test that
constructs the query model and drives the endpoint through the
services layer.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 11:42:43 +02:00