fix jarxs path with basepath

This commit is contained in:
wing328
2015-10-26 18:00:15 +08:00
parent 6b7ceab081
commit cc7105b5d8
18 changed files with 75 additions and 28 deletions

View File

@@ -163,6 +163,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
}
String contextPath = swagger.getBasePath() == null ? "" : swagger.getBasePath();
String basePath = hostBuilder.toString();
String basePathWithoutHost = swagger.getBasePath();
// resolve inline models
@@ -252,6 +253,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
Map<String, Object> operation = processOperations(config, tag, ops);
operation.put("basePath", basePath);
operation.put("basePathWithoutHost", basePathWithoutHost);
operation.put("contextPath", contextPath);
operation.put("baseName", tag);
operation.put("modelPackage", config.modelPackage());