forked from loafle/openapi-generator-original
fix incorrect indentation in petstore spec
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user