Fix #1223, incorrect OpenAPI externalDocs url (#1232)

This commit is contained in:
Steve Chávez
2019-01-25 12:04:36 -05:00
committed by GitHub
parent 3900baa6ce
commit 04ab0ea753
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- #1223, Fix incorrect OpenAPI externalDocs url - @steve-chavez
## [5.2.0] - 2018-12-12 ## [5.2.0] - 2018-12-12
### Added ### Added
+2 -2
View File
@@ -37,7 +37,7 @@ import Data.List (lookup)
import Data.Monoid import Data.Monoid
import Data.Scientific (floatingOrInteger) import Data.Scientific (floatingOrInteger)
import Data.String (String) import Data.String (String)
import Data.Text (dropAround, import Data.Text (dropWhileEnd, dropEnd,
intercalate, lines, intercalate, lines,
strip, take, splitOn) strip, take, splitOn)
import Data.Text.Encoding (encodeUtf8) import Data.Text.Encoding (encodeUtf8)
@@ -112,7 +112,7 @@ prettyVersion =
-- | Version number used in docs -- | Version number used in docs
docsVersion :: Text docsVersion :: Text
docsVersion = "v" <> dropAround (== '.') (dropAround (/= '.') prettyVersion) docsVersion = "v" <> dropEnd 1 (dropWhileEnd (/= '.') prettyVersion)
-- | Function to read and parse options from the command line -- | Function to read and parse options from the command line
readOptions :: IO AppConfig readOptions :: IO AppConfig