StaticResourcesController.php
$data['basePath'] = $request->getBaseUrl() . $data['basePath'];
While attempting to use this bundle with static json files I noticed that I get an undefined error if I don't include base path in my api-docs.json file. When I add the base path the base path is added twice and I believe this is caused by the line above. Is there any reason why base path is appended like that?
I looked through swagger-php documentation for what base path is supposed to be and it should just be something like http://domain.com/api. The base path is already set through the request object so why append it with the json base path?
StaticResourcesController.php
$data['basePath'] = $request->getBaseUrl() . $data['basePath'];While attempting to use this bundle with static json files I noticed that I get an undefined error if I don't include base path in my api-docs.json file. When I add the base path the base path is added twice and I believe this is caused by the line above. Is there any reason why base path is appended like that?
I looked through swagger-php documentation for what base path is supposed to be and it should just be something like http://domain.com/api. The base path is already set through the request object so why append it with the json base path?