Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add baseUrl property to generated output body (#71)
Issue #53 raises concern that the generated output contains neither host nor basePath. This commit adds basePath to the top of index.html, just before info.version. Both the location of basePath and the continued absence of host were inspired by the current format of Swagger UI (2.0), with basePath and info.version colocated and host never being displayed. Issue #53: 'Missing fields' #53
- Loading branch information
1 parent
1dbd110
commit cc65bcb
Showing
5 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
*.iml | ||
node_modules | ||
target | ||
test-output | ||
test-output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
"version": "1.0.0", | ||
"title": "API title" | ||
}, | ||
"basePath": "/v1", | ||
"paths": { | ||
"/": { | ||
"get": { | ||
|