ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
97 stars 32 forks source link

Production bug: trying to load different file #75

Closed zecar closed 2 months ago

zecar commented 2 months ago

In production build, the /swagger route tries to load ep2-api/build/config/../swagger.yaml -> .yaml, but the generated file is .yml

I believe it's because of this line: https://github.com/ad-on-is/adonis-autoswagger/blob/1ac53bfab9c080ff5fc48504bdb3f97d02c9db1a/src/autoswagger.ts#L154

ad-on-is commented 2 months ago

Oh... thx.. fixed in 3.12.0