Skip to content

Commit

Permalink
fix incorrect indentation in petstore spec
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Feb 22, 2018
1 parent a59c325 commit 92117b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private String getHost() {
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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92117b8

Please sign in to comment.