[Koha-bugs] [Bug 24228] Add a parameter to recursively embed objects in Koha::Object(s)->to_api
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 27 14:34:31 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24228
--- Comment #10 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Agustín Moyano from comment #9)
> Created attachment 96646 [details] [review]
> Bug 24228: (follow-up) Check wether each child or children can('to_api') and
> throw exception otherwise
Agustín, I'm not sure about your follow-up. I think it might be possible that
we want to embed things that are not strictly Koha::Object-derived. I would
prefer to leave it to the controller or the OpenAPI plugin to validate the
result.
Also, there should be tests for the changed behavior.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list