https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44035 --- Comment #6 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #5)
Why not just override the methods in https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-OpenAPI-5.05/view/ lib/Mojolicious/Plugin/OpenAPI/Parameters.pm like the documentation suggests?
""" openapi.build_response_body $bytes = $c->openapi->build_response_body(Mojo::Asset->new); $bytes = $c->openapi->build_response_body($data); Takes validated data and turns it into bytes that will be used as HTTP response body. This method is useful to override, in case you want to render some other structure than JSON. 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. """ -- You are receiving this mail because: You are watching all bug changes.