yiisoft / yii-swagger

Swagger integration for Yii
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
30 stars 8 forks source link

Swagger middleware does not respect any global middlewares #75

Open xepozz opened 1 year ago

xepozz commented 1 year ago

Steps to reproduce:

What I expect to see: All routes should contain the path part from Locale middleware: {_language} with an ability to change it on request

What I see: All routes are exactly as they were declared

Looks like the problem is larger than it is. Having swagger declaration in third-party library developer may have wrong addresses that make our swagger package unusable. Just think of that you're changing /debug route from yii-debug package to /infra/debug and you still have /debug into your swagger panel, do not have /infra/debug and any /debug calls bring errors.

@yiisoft/yii3 do you have any thought about it?