lichunqiang / yii2-swagger

yii2 with swagger-php
https://packagist.org/packages/light/yii2-swagger
MIT License
151 stars 47 forks source link

Broken with zircote/swagger-php v2.0.11 #10

Closed ndurchx closed 6 years ago

ndurchx commented 6 years ago

Since the update of zircote/swagger-php to 2.0.11, this package is broken. The definitions can´t be found.

lichunqiang commented 6 years ago

hi @ndurchx Can provide more information about this?

I had try with demo project, it works fine.

ndurchx commented 6 years ago

I could rebuild the issue also on the demo project. The problem are subpaths.

500 : {"name":"PHP User Notice","message":"$ref \"#/definitions/request/\" not found for @SWG\\Schema() in \\app\\modules\\v1\\controllers\\UserController->actionQuery()

This works on 2.0.10

lichunqiang commented 6 years ago

hi . @ndurchx

I found that the changelog Added validation of internal refs, maybe is invalid on the old version but no validation.

You should change this behavior.

Let's have a future discussion if you have any question.

ndurchx commented 6 years ago

https://github.com/zircote/swagger-php/issues/435 Possibly solving at swagger-php