Closed akarelas closed 4 hours ago
When I $self->render(openapi => \%hash) I get content-type JSON in response, which is good.
$self->render(openapi => \%hash)
But when I $self->render(openapi => true, false or null) I get content type text/html in the response, even if the route's spec says:
$self->render(openapi => true, false or null)
produces => [ 'application/json' ]
Shouldn't content-type be json in the latter case?
Need to test this more, sorry, closing for now.
When I
$self->render(openapi => \%hash)
I get content-type JSON in response, which is good.But when I
$self->render(openapi => true, false or null)
I get content type text/html in the response, even if the route's spec says:Shouldn't content-type be json in the latter case?