fix incorrect indentation in petstore spec

This commit is contained in:
wing328
2018-02-22 18:17:28 +08:00
parent a59c325cb7
commit 92117b879a
2 changed files with 2 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
hostBuilder.append(swagger.getHost());
} else {
hostBuilder.append("localhost");
LOGGER.warn("'host' not defined in the spec. Default to 'localhost'.");
}
if (!StringUtils.isEmpty(swagger.getBasePath()) && !swagger.getBasePath().equals("/")) {
hostBuilder.append(swagger.getBasePath());

View File

@@ -9,7 +9,7 @@ info:
license:
name: Apache-2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: petstore.swagger.io
host: petstore.swagger.io
basePath: /v2
tags:
- name: pet