@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user