forked from loafle/openapi-generator-original
Merge pull request #1834 from frinux/patch-2
Fixed bug: basePath should not be empty
This commit is contained in:
@@ -246,9 +246,6 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
||||
|
||||
@Override
|
||||
public void preprocessSwagger(Swagger swagger) {
|
||||
if ("/".equals(swagger.getBasePath())) {
|
||||
swagger.setBasePath("");
|
||||
}
|
||||
|
||||
String host = swagger.getHost();
|
||||
String port = "8080";
|
||||
|
||||
Reference in New Issue
Block a user