Swagger-php: url parameters with underscodes on Put method raises Exception: Unable to merge @SWG\Put()

Created on 1 Dec 2016  路  2Comments  路  Source: zircote/swagger-php

 Fine:
    /**
     * @SWG\Put(
     *
     *   path="/products/{product}/apps/{app}",
)
*/
Error "Unable to merge @SWG\Put()":
    /**
     * @SWG\Put(
     *
     *   path="/products/{id_product}/apps/{id_app}",
)
*/

Underscores on path parameters runs fine on other methods (POST for example)

Most helpful comment

Closing issue, sorry!, problem is related to duplicate "paths" to same method . I have two puts with same path defined.

All 2 comments

Closing issue, sorry!, problem is related to duplicate "paths" to same method . I have two puts with same path defined.

Just encountered the same message, you saved me some debugging, thanks.
It would be nice to have a more explicit error message here, the current one is very confusing!

Was this page helpful?
0 / 5 - 0 ratings