Fixed bug: basePath should not be empty

This last change was producing a wrong swagger spec

@see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
"The value MUST start with a leading slash (/)"
This commit is contained in:
frinux 2016-01-07 10:49:37 +01:00 committed by Francois LE QUEMENER
parent 170bde65e5
commit b6e8ad56b5

View File

@ -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";