Skip to content

Commit cf62f31

Browse files
committed
Fix dashboard_booking schema to match actual API response
The dashboard endpoint returns bookings in a completely different format than was documented: Removed (not present in real response): - start_at, end_at (unix timestamps) - start_time, end_time (time strings) - room (object with id/name/code) - customer (object with id/name/email) - cancelled (boolean) Added (present in real response): - start, end: datetime strings "YYYY-MM-DD HH:mm" - split: room code string (matches rooms[].code) - room_name: room display name - amount_due: formatted currency string e.g. "£1.00" (was integer) - payments_recieved: boolean (note API spelling) - show_studio_notes: boolean - extras_summary: changed from string to array of strings - link: admin path string - type: "booking" or "blocked" - class: CSS class string https://claude.ai/code/session_01AUVAYoQ6vtiGeSvWiGsfpK
1 parent acfd1db commit cf62f31

1 file changed

Lines changed: 45 additions & 30 deletions

File tree

v2/jammed.yaml

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,69 +3669,84 @@ components:
36693669
type: integer
36703670
dashboard_booking:
36713671
type: object
3672-
title: Dashboard Booking
3673-
description: Lightweight booking representation for dashboard/schedule views
3672+
title: DashboardBooking
3673+
description: 'A booking as returned by the dashboard endpoint. Note: this format differs significantly from the full
3674+
booking schema.'
36743675
properties:
36753676
id:
36763677
type: integer
36773678
code:
36783679
type: string
36793680
name:
36803681
type: string
3682+
description: Customer name
3683+
title:
3684+
type: string
3685+
description: Display title, e.g. "John Doe (The Beatles)"
3686+
band_name:
3687+
type: string
3688+
description: Band/group name, empty string if none
36813689
is_recording:
36823690
type: boolean
3691+
nullable: true
36833692
session_name:
36843693
type: string
3694+
nullable: true
36853695
block_colour_override:
36863696
type: string
3697+
nullable: true
3698+
description: Hex colour override for the booking block
36873699
studio_notes:
36883700
type: string
3701+
nullable: true
36893702
additional_notes:
36903703
type: string
3704+
nullable: true
36913705
number_expected:
36923706
type: integer
3693-
room:
3694-
type: object
3695-
properties:
3696-
id:
3697-
type: integer
3698-
name:
3699-
type: string
3700-
code:
3701-
type: string
3702-
start_at:
3703-
type: integer
3704-
end_at:
3705-
type: integer
3706-
start_time:
3707+
nullable: true
3708+
start:
37073709
type: string
3708-
end_time:
3710+
description: Start datetime as "YYYY-MM-DD HH:mm"
3711+
example: 2026-03-24 11:41
3712+
end:
37093713
type: string
3710-
title:
3714+
description: End datetime as "YYYY-MM-DD HH:mm"
3715+
example: 2026-03-24 12:41
3716+
split:
37113717
type: string
3712-
band_name:
3718+
description: Room code — use to match against rooms[].code
3719+
room_name:
37133720
type: string
3721+
description: Room display name
37143722
has_amount_due:
37153723
type: boolean
37163724
amount_due:
3717-
type: integer
3725+
type: string
3726+
description: Formatted currency string e.g. "£1.00"
3727+
payments_recieved:
3728+
type: boolean
3729+
description: 'Whether any payments have been received (note: API uses this spelling)'
37183730
regular:
37193731
type: boolean
37203732
incomplete:
37213733
type: boolean
3722-
cancelled:
3734+
show_studio_notes:
37233735
type: boolean
3724-
customer:
3725-
type: object
3726-
properties:
3727-
id:
3728-
type: integer
3729-
name:
3730-
type: string
3731-
email:
3732-
type: string
37333736
extras_summary:
3737+
type: array
3738+
items:
3739+
type: string
3740+
description: Array of extra item descriptions (empty array if none)
3741+
link:
3742+
type: string
3743+
description: Admin link path e.g. "/admin/bookings/R9XT9J1JFX"
3744+
type:
3745+
type: string
3746+
description: '"booking" or "blocked"'
3747+
class:
37343748
type: string
3749+
description: CSS class for the booking block e.g. "room-l3j5nwp8"
37353750
credit_movement:
37363751
type: object
37373752
title: Credit Movement

0 commit comments

Comments
 (0)