https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43460
--- Comment #39 from David Cook <[email protected]> --- (In reply to David Cook from comment #38) > Take a look at > https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-OpenAPI-5.12/view/ > lib/Mojolicious/Plugin/OpenAPI/Parameters.pm#openapi.parse_request_body > > openapi.parse_request_body > $hash_ref = $c->openapi->parse_request_body; > Returns a structure representing the request body. The default is to parse > the input as JSON: > > {content_type => "application/json", exists => !!$c->req->body_size, value > => $c->req->json}; > This method is useful to override, in case you want to parse some other > structure than JSON. > > So... I reckon that might be a better way of doing it... That is to say, you can override the registration of the "openapi.parse_request_body" helper to add support for application/xml. -- 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/
