https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42311

--- Comment #22 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 203320
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203320&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

Signed-off-by: Tomás Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to