diff --git a/library/Swagger/Swagger.php b/library/Swagger/Swagger.php index a844c80c2..1c75bf30d 100755 --- a/library/Swagger/Swagger.php +++ b/library/Swagger/Swagger.php @@ -129,7 +129,7 @@ public function getResourceList($options = array()) } else { $result = array(); } - foreach (array('basePath', 'apiVersion', 'swaggerVersion') as $key) { + foreach (array('apiVersion', 'swaggerVersion') as $key) { if (array_key_exists($key, $result) === false) { $result[$key] = $options[$key]; } @@ -153,9 +153,6 @@ public function getResourceList($options = array()) } $result['apis'][] = $api; } - if ($result['basePath'] === null) { - unset($result['basePath']); - } if ($this->info !== null) { $result['info'] = $this->info; }