jhthorsen / mojolicious-plugin-openapi

OpenAPI / Swagger plugin for Mojolicious
54 stars 42 forks source link

Allow other status codes #185

Closed Skeeve closed 4 years ago

Skeeve commented 4 years ago

Security callback only supports 401 for "Unauthorized". I missed at least 403 "Forbidden"

Example call would be:

$c->$cb( { status => 403, message => ... } );
Skeeve commented 4 years ago

I'm taking this back due to #186 which is imho better

jhthorsen commented 4 years ago

Don't close and re-open a new PR. Just force push to the existing PR.

186.