jhthorsen / mojolicious-plugin-openapi

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

Add support for /components/securitySchemes from OpenAPI 3.0 and add default response types #129

Closed elcamlost closed 5 years ago

elcamlost commented 5 years ago

This PR

  1. Fixes bug with default_response_codes - Response object format changed between 2.0 and 3.0, so we need to add different type of response objects for 3.0 routes. I changed logic and used v3 default response feature. Maybe you'll find it not an appropriate solution, but it's easy to use my code to implement same logic both for 3.0 and 2.0 routes.

  2. Adds support for 3.0 to Security Plugin.

jhthorsen commented 5 years ago

What's the status of this PR @elcamlost?

elcamlost commented 5 years ago

Sorry for silence. I was overloaded on work, but now can invest some time in it. I'm planning to fix it tomorrow.

elcamlost commented 5 years ago

@jhthorsen Is there anything I can do to improve this PR?

jhthorsen commented 5 years ago

Sorry for the long wait and thanks for all the work! 👍

elcamlost commented 5 years ago

I could do all the work better in the first place. Thanks for your suggestions and improvements!