From f0bc1d3ff44dd783781fc5e747268a2d80b141b6 Mon Sep 17 00:00:00 2001 From: Aleksandar Dimitrov Date: Wed, 27 Feb 2019 16:54:49 +0200 Subject: [PATCH] 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..` --- Resources/doc/alternative_names.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/alternative_names.rst b/Resources/doc/alternative_names.rst index b38770c..701f904 100644 --- a/Resources/doc/alternative_names.rst +++ b/Resources/doc/alternative_names.rst @@ -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() {