Merge pull request #468 from cor3ntin/fix_base_path_upstream

Fix {{basePath}} value in support files.
This commit is contained in:
Tony Tam 2015-03-04 07:25:29 -08:00
commit 07ff6a2278

View File

@ -151,7 +151,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
Map<String, Object> apis = new HashMap<String, Object>();
apis.put("apis", allOperations);
if(swagger.getBasePath() != null) {
bundle.put("basePath", swagger.getBasePath());
bundle.put("basePath", basePath);
}
bundle.put("apiInfo", apis);
bundle.put("models", allModels);