jhthorsen / mojolicious-plugin-openapi

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

Restore path-searching logic to fix #107 #108

Closed mohawk2 closed 5 years ago

mohawk2 commented 5 years ago

Before the commit referred to in #107, the stack was being searched for the last entry that had the openapi.[op_]path set, and using that. That commit just used the last one, since an array-ref is always true. This PR restores that logic, which then works correctly with Yancy.

jhthorsen commented 5 years ago

I can't accept this PR without a test, since there's a high risk I'll revert it in the future by accident.

mohawk2 commented 5 years ago

Quite right. See new version.

jhthorsen commented 5 years ago

Pretty sure this is fixed together with #105.