Fix for missing basePath

If it is used without `#/definitions/` the documentation gives an error: `Could not resolve reference because of: Tried to resolve a relative URL, without having a basePath..`
This commit is contained in:
Aleksandar Dimitrov 2019-02-27 16:54:49 +02:00 committed by GitHub
parent 279d20be78
commit f0bc1d3ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ In this case the class ``App\Entity\User`` will be aliased into:
class HomeController
{
/**
* @SWG\Response(response=200, @SWG\Schema(ref="MyModel"))
* @SWG\Response(response=200, @SWG\Schema(ref="#/definitions/MyModel"))
*/
public function indexAction()
{