packages feed

rest-gen 0.16.1 → 0.16.1.1

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,6 +1,10 @@ # Changelog -#### 0.16.1+#### 0.16.1.1++* Haskell: Fixes a bug where client generation for end points without defined output or errors would default to parsing errors as XML even though the accept header was text/json. It now parses the response as json.++### 0.16.1  ##### JavaScript 
rest-gen.cabal view
@@ -1,5 +1,5 @@ name:                rest-gen-version:             0.16.1+version:             0.16.1.1 description:         Documentation and client generation from rest definition. synopsis:            Documentation and client generation from rest definition. maintainer:          code@silk.co
src/Rest/Gen/Haskell.hs view
@@ -391,7 +391,7 @@     -- want to make assumptions about the response type if there is no     -- accept header so in that case we force it to be JSON.     Nothing -> fromJustNote ("rest-gen bug: toResponseInfo' was called with a data type other than XML or JSON, responseType: " ++ show r)-             . toResponseInfo' . defaultErrorDataDesc . maybe XML (\x -> case x of { XML -> XML; _ -> JSON })+             . toResponseInfo' . defaultErrorDataDesc . maybe JSON (\x -> case x of { XML -> XML; _ -> JSON })              . fmap (L.get dataType) . outputType              $ r     Just t -> toResponseInfo [t]