https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42311 --- Comment #12 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 198012 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198012&action=edit Bug 42311: (QA follow-up) Add response schemas to calendar CRUD endpoints The POST 201 and GET/PUT 200 responses for the four calendar CRUD endpoints (weekly_closures, repeating_closures, single_closures, closure_exceptions) had a bare `description:` with no schema, so the response body shape was undocumented in the OpenAPI spec. Declare an inline response schema on each success response matching the actual shape returned by `$c->objects->to_api($closure)`: the internally assigned identifier, library_id, the rule-specific fields (weekday / day+month / date), title, and description. Test plan: 1. prove t/db_dependent/api/v1/libraries_calendar.t 2. GET /api/v1/.swagger should validate; no breaking change to any existing client since the spec was underspecified, not wrong -- You are receiving this mail because: You are watching all bug changes.