Fix {{basePath}} value in support files.

Make {{basePath}} value in support files be the
same as in operation files, aka host/path, instead of /path.
This commit is contained in:
Corentin Jabot
2015-02-26 11:25:14 +01:00
parent 9ce4156e4c
commit 156055fdd5

View File

@@ -150,7 +150,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);