rest-gen 0.18.0.0 → 0.19.0.0
raw patch · 3 files changed
+14/−6 lines, 3 filesdep ~rest-coredep ~semigroupsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: rest-core, semigroups
API changes (from Hackage documentation)
- Rest.Gen.Base.ActionInfo: _dataExample :: DataMeta -> [String]
- Rest.Gen.Base.ActionInfo: _dataSchema :: DataMeta -> Maybe String
- Rest.Gen.Base.ActionInfo: _dataType :: DataDesc -> DataType
- Rest.Gen.Base.ActionInfo: _dataTypeDesc :: DataMeta -> String
- Rest.Gen.Base.ActionInfo: _desc :: DataDescription -> DataDesc
- Rest.Gen.Base.ActionInfo: _haskellModules :: DataDesc -> [ModuleName]
- Rest.Gen.Base.ActionInfo: _haskellType :: DataDesc -> Type
- Rest.Gen.Base.ActionInfo: _meta :: DataDescription -> DataMeta
- Rest.Gen.Base.ActionInfo: actionTarget :: ActionInfo -> ActionTarget
- Rest.Gen.Base.ActionInfo: actionType :: ActionInfo -> ActionType
- Rest.Gen.Base.ActionInfo: errorType :: ResponseType -> Maybe DataDesc
- Rest.Gen.Base.ActionInfo: errors :: ActionInfo -> [DataDescription]
- Rest.Gen.Base.ActionInfo: https :: ActionInfo -> Bool
- Rest.Gen.Base.ActionInfo: ident :: ActionInfo -> Maybe Ident
- Rest.Gen.Base.ActionInfo: inputs :: ActionInfo -> [DataDescription]
- Rest.Gen.Base.ActionInfo: instance Eq ActionInfo
- Rest.Gen.Base.ActionInfo: instance Eq ActionTarget
- Rest.Gen.Base.ActionInfo: instance Eq ActionType
- Rest.Gen.Base.ActionInfo: instance Eq DataDesc
- Rest.Gen.Base.ActionInfo: instance Eq DataDescription
- Rest.Gen.Base.ActionInfo: instance Eq DataMeta
- Rest.Gen.Base.ActionInfo: instance Eq DataType
- Rest.Gen.Base.ActionInfo: instance Eq RequestMethod
- Rest.Gen.Base.ActionInfo: instance Show ActionInfo
- Rest.Gen.Base.ActionInfo: instance Show ActionTarget
- Rest.Gen.Base.ActionInfo: instance Show ActionType
- Rest.Gen.Base.ActionInfo: instance Show DataDesc
- Rest.Gen.Base.ActionInfo: instance Show DataDescription
- Rest.Gen.Base.ActionInfo: instance Show DataMeta
- Rest.Gen.Base.ActionInfo: instance Show DataType
- Rest.Gen.Base.ActionInfo: instance Show RequestMethod
- Rest.Gen.Base.ActionInfo: instance Show ResponseType
- Rest.Gen.Base.ActionInfo: link :: ActionInfo -> Link
- Rest.Gen.Base.ActionInfo: method :: ActionInfo -> RequestMethod
- Rest.Gen.Base.ActionInfo: outputType :: ResponseType -> Maybe DataDesc
- Rest.Gen.Base.ActionInfo: outputs :: ActionInfo -> [DataDescription]
- Rest.Gen.Base.ActionInfo: params :: ActionInfo -> [String]
- Rest.Gen.Base.ActionInfo: postAction :: ActionInfo -> Bool
- Rest.Gen.Base.ActionInfo: resDir :: ActionInfo -> String
- Rest.Gen.Base.ActionInfo.Ident: description :: Ident -> String
- Rest.Gen.Base.ActionInfo.Ident: haskellModules :: Ident -> [ModuleName]
- Rest.Gen.Base.ActionInfo.Ident: haskellType :: Ident -> Type
- Rest.Gen.Base.ActionInfo.Ident: instance Eq Ident
- Rest.Gen.Base.ActionInfo.Ident: instance Show Ident
- Rest.Gen.Base.ApiTree: instance Eq ApiAction
- Rest.Gen.Base.ApiTree: instance Eq ApiResource
- Rest.Gen.Base.ApiTree: instance Show ApiAction
- Rest.Gen.Base.ApiTree: instance Show ApiResource
- Rest.Gen.Base.ApiTree: itemInfo :: ApiAction -> ActionInfo
- Rest.Gen.Base.ApiTree: itemLink :: ApiAction -> Link
- Rest.Gen.Base.ApiTree: itemResource :: ApiAction -> ResourceId
- Rest.Gen.Base.ApiTree: resAccessors :: ApiResource -> [Accessor]
- Rest.Gen.Base.ApiTree: resDescription :: ApiResource -> String
- Rest.Gen.Base.ApiTree: resId :: ApiResource -> ResourceId
- Rest.Gen.Base.ApiTree: resItems :: ApiResource -> [ApiAction]
- Rest.Gen.Base.ApiTree: resLink :: ApiResource -> Link
- Rest.Gen.Base.ApiTree: resName :: ApiResource -> String
- Rest.Gen.Base.ApiTree: resParents :: ApiResource -> ResourceId
- Rest.Gen.Base.ApiTree: resPrivate :: ApiResource -> Bool
- Rest.Gen.Base.ApiTree: subResources :: ApiResource -> [ApiResource]
- Rest.Gen.Docs: contextVersion :: DocsContext -> Version
- Rest.Gen.Docs: instance [overlap ok] Eq DocsContext
- Rest.Gen.Docs: instance [overlap ok] Show DocsContext
- Rest.Gen.Docs: rootUrl :: DocsContext -> String
- Rest.Gen.Docs: templates :: DocsContext -> String
- Rest.Gen.Haskell: apiVersion :: HaskellContext -> Version
- Rest.Gen.Haskell: imports :: HaskellContext -> [ImportDecl]
- Rest.Gen.Haskell: includePrivate :: HaskellContext -> Bool
- Rest.Gen.Haskell: instance Eq InputInfo
- Rest.Gen.Haskell: instance Eq ResponseInfo
- Rest.Gen.Haskell: instance Show InputInfo
- Rest.Gen.Haskell: instance Show ResponseInfo
- Rest.Gen.Haskell: namespace :: HaskellContext -> [String]
- Rest.Gen.Haskell: rewrites :: HaskellContext -> [(ModuleName, ModuleName)]
- Rest.Gen.Haskell: sources :: HaskellContext -> [ModuleName]
- Rest.Gen.Haskell: targetPath :: HaskellContext -> String
- Rest.Gen.Haskell: wrapperName :: HaskellContext -> String
- Rest.Gen.Types: importAs :: ImportDecl -> Maybe ModuleName
- Rest.Gen.Types: importLoc :: ImportDecl -> SrcLoc
- Rest.Gen.Types: importModule :: ImportDecl -> ModuleName
- Rest.Gen.Types: importPkg :: ImportDecl -> Maybe String
- Rest.Gen.Types: importQualified :: ImportDecl -> Bool
- Rest.Gen.Types: importSafe :: ImportDecl -> Bool
- Rest.Gen.Types: importSpecs :: ImportDecl -> Maybe (Bool, [ImportSpec])
- Rest.Gen.Types: importSrc :: ImportDecl -> Bool
+ Rest.Gen.Base.ActionInfo: [_dataExample] :: DataMeta -> [String]
+ Rest.Gen.Base.ActionInfo: [_dataSchema] :: DataMeta -> Maybe String
+ Rest.Gen.Base.ActionInfo: [_dataTypeDesc] :: DataMeta -> String
+ Rest.Gen.Base.ActionInfo: [_dataType] :: DataDesc -> DataType
+ Rest.Gen.Base.ActionInfo: [_desc] :: DataDescription -> DataDesc
+ Rest.Gen.Base.ActionInfo: [_haskellModules] :: DataDesc -> [ModuleName]
+ Rest.Gen.Base.ActionInfo: [_haskellType] :: DataDesc -> Type
+ Rest.Gen.Base.ActionInfo: [_meta] :: DataDescription -> DataMeta
+ Rest.Gen.Base.ActionInfo: [actionTarget] :: ActionInfo -> ActionTarget
+ Rest.Gen.Base.ActionInfo: [actionType] :: ActionInfo -> ActionType
+ Rest.Gen.Base.ActionInfo: [errorType] :: ResponseType -> Maybe DataDesc
+ Rest.Gen.Base.ActionInfo: [errors] :: ActionInfo -> [DataDescription]
+ Rest.Gen.Base.ActionInfo: [https] :: ActionInfo -> Bool
+ Rest.Gen.Base.ActionInfo: [ident] :: ActionInfo -> Maybe Ident
+ Rest.Gen.Base.ActionInfo: [inputs] :: ActionInfo -> [DataDescription]
+ Rest.Gen.Base.ActionInfo: [link] :: ActionInfo -> Link
+ Rest.Gen.Base.ActionInfo: [method] :: ActionInfo -> RequestMethod
+ Rest.Gen.Base.ActionInfo: [outputType] :: ResponseType -> Maybe DataDesc
+ Rest.Gen.Base.ActionInfo: [outputs] :: ActionInfo -> [DataDescription]
+ Rest.Gen.Base.ActionInfo: [params] :: ActionInfo -> [String]
+ Rest.Gen.Base.ActionInfo: [postAction] :: ActionInfo -> Bool
+ Rest.Gen.Base.ActionInfo: [resDir] :: ActionInfo -> String
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.ActionInfo
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.ActionTarget
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.ActionType
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.DataDesc
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.DataDescription
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.DataMeta
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.DataType
+ Rest.Gen.Base.ActionInfo: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.RequestMethod
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.ActionInfo
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.ActionTarget
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.ActionType
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.DataDesc
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.DataDescription
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.DataMeta
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.DataType
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.RequestMethod
+ Rest.Gen.Base.ActionInfo: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.ResponseType
+ Rest.Gen.Base.ActionInfo.Ident: [description] :: Ident -> String
+ Rest.Gen.Base.ActionInfo.Ident: [haskellModules] :: Ident -> [ModuleName]
+ Rest.Gen.Base.ActionInfo.Ident: [haskellType] :: Ident -> Type
+ Rest.Gen.Base.ActionInfo.Ident: instance GHC.Classes.Eq Rest.Gen.Base.ActionInfo.Ident.Ident
+ Rest.Gen.Base.ActionInfo.Ident: instance GHC.Show.Show Rest.Gen.Base.ActionInfo.Ident.Ident
+ Rest.Gen.Base.ApiTree: [itemInfo] :: ApiAction -> ActionInfo
+ Rest.Gen.Base.ApiTree: [itemLink] :: ApiAction -> Link
+ Rest.Gen.Base.ApiTree: [itemResource] :: ApiAction -> ResourceId
+ Rest.Gen.Base.ApiTree: [resAccessors] :: ApiResource -> [Accessor]
+ Rest.Gen.Base.ApiTree: [resDescription] :: ApiResource -> String
+ Rest.Gen.Base.ApiTree: [resId] :: ApiResource -> ResourceId
+ Rest.Gen.Base.ApiTree: [resItems] :: ApiResource -> [ApiAction]
+ Rest.Gen.Base.ApiTree: [resLink] :: ApiResource -> Link
+ Rest.Gen.Base.ApiTree: [resName] :: ApiResource -> String
+ Rest.Gen.Base.ApiTree: [resParents] :: ApiResource -> ResourceId
+ Rest.Gen.Base.ApiTree: [resPrivate] :: ApiResource -> Bool
+ Rest.Gen.Base.ApiTree: [subResources] :: ApiResource -> [ApiResource]
+ Rest.Gen.Base.ApiTree: instance GHC.Classes.Eq Rest.Gen.Base.ApiTree.ApiAction
+ Rest.Gen.Base.ApiTree: instance GHC.Classes.Eq Rest.Gen.Base.ApiTree.ApiResource
+ Rest.Gen.Base.ApiTree: instance GHC.Show.Show Rest.Gen.Base.ApiTree.ApiAction
+ Rest.Gen.Base.ApiTree: instance GHC.Show.Show Rest.Gen.Base.ApiTree.ApiResource
+ Rest.Gen.Docs: [contextVersion] :: DocsContext -> Version
+ Rest.Gen.Docs: [rootUrl] :: DocsContext -> String
+ Rest.Gen.Docs: [templates] :: DocsContext -> String
+ Rest.Gen.Docs: instance GHC.Classes.Eq Rest.Gen.Docs.DocsContext
+ Rest.Gen.Docs: instance GHC.Show.Show Rest.Gen.Docs.DocsContext
+ Rest.Gen.Haskell: [apiVersion] :: HaskellContext -> Version
+ Rest.Gen.Haskell: [imports] :: HaskellContext -> [ImportDecl]
+ Rest.Gen.Haskell: [includePrivate] :: HaskellContext -> Bool
+ Rest.Gen.Haskell: [namespace] :: HaskellContext -> [String]
+ Rest.Gen.Haskell: [rewrites] :: HaskellContext -> [(ModuleName, ModuleName)]
+ Rest.Gen.Haskell: [sources] :: HaskellContext -> [ModuleName]
+ Rest.Gen.Haskell: [targetPath] :: HaskellContext -> String
+ Rest.Gen.Haskell: [wrapperName] :: HaskellContext -> String
+ Rest.Gen.Haskell: instance GHC.Classes.Eq Rest.Gen.Haskell.InputInfo
+ Rest.Gen.Haskell: instance GHC.Classes.Eq Rest.Gen.Haskell.ResponseInfo
+ Rest.Gen.Haskell: instance GHC.Show.Show Rest.Gen.Haskell.InputInfo
+ Rest.Gen.Haskell: instance GHC.Show.Show Rest.Gen.Haskell.ResponseInfo
+ Rest.Gen.Types: [importAs] :: ImportDecl -> Maybe ModuleName
+ Rest.Gen.Types: [importLoc] :: ImportDecl -> SrcLoc
+ Rest.Gen.Types: [importModule] :: ImportDecl -> ModuleName
+ Rest.Gen.Types: [importPkg] :: ImportDecl -> Maybe String
+ Rest.Gen.Types: [importQualified] :: ImportDecl -> Bool
+ Rest.Gen.Types: [importSafe] :: ImportDecl -> Bool
+ Rest.Gen.Types: [importSpecs] :: ImportDecl -> Maybe (Bool, [ImportSpec])
+ Rest.Gen.Types: [importSrc] :: ImportDecl -> Bool
Files
- CHANGELOG.md +9/−0
- files/Javascript/prelude.js +1/−2
- rest-gen.cabal +4/−4
CHANGELOG.md view
@@ -1,5 +1,13 @@ # Changelog +## 0.19.0.0++* Don't call global `Q` if available. This was an experimental+ feature, and didn't work well in practice, since it would fail if+ there was something else called `Q` on the window. We're not aware+ of anyone depending on `Q`, but if you do, you need to wrap the+ results of all API calls in a call to Q.+ ## 0.18.0.0 * Javascript: postfix reserved words with an underscore. This is a@@ -8,6 +16,7 @@ match one of the reserved words from [this list](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords) will have to be updated with a trailing underscore.+* (revision) Allow `aeson-0.10.*`. #### 0.17.1.3
files/Javascript/prelude.js view
@@ -62,7 +62,6 @@ function jQueryRequest (method, url, params, success, error, contentType, acceptHeader, data, callOpts, modifyRequest) {- var q = window.Q || function (a) { return a }; var jq = jqFun(); var headers = jq.extend(true, {}, $apinamespace$.defaultHeaders);@@ -85,7 +84,7 @@ $apinamespace$.addObject(callData, $apinamespace$.defaultAjaxOptions); $apinamespace$.addObject(callData, callOpts); - return q(jq.ajax(callData));+ return jq.ajax(callData); } function nodeRequest (method, url, params, onSuccess, onError, contentType, acceptHeader, data, callOpts, modifyRequest)
rest-gen.cabal view
@@ -1,5 +1,5 @@ name: rest-gen-version: 0.18.0.0+version: 0.19.0.0 description: Documentation and client generation from rest definition. synopsis: Documentation and client generation from rest definition. maintainer: code@silk.co@@ -51,7 +51,7 @@ base >= 4.5 && < 4.9 , Cabal >= 1.16 && < 1.23 , HStringTemplate >= 0.6 && < 0.9- , aeson >= 0.7 && < 0.10+ , aeson >= 0.7 && < 0.11 , blaze-html >= 0.5 && < 0.9 , code-builder == 0.1.* , directory >= 1.1 && < 1.3@@ -63,7 +63,7 @@ , json-schema >= 0.6 && < 0.8 , pretty >= 1.0 && < 1.2 , process >= 1.0 && < 1.4- , rest-core >= 0.35 && < 0.37+ , rest-core >= 0.35 && < 0.38 , safe >= 0.2 && < 0.4 , semigroups >= 0.5 && < 0.18 , scientific >= 0.3.2 && < 0.4@@ -85,7 +85,7 @@ , HUnit >= 1.2 && < 1.4 , fclabels >= 1.0.4 && < 2.1 , haskell-src-exts >= 1.15.0 && < 1.17- , rest-core >= 0.35 && < 0.37+ , rest-core >= 0.35 && < 0.38 , rest-gen , test-framework == 0.8.* , test-framework-hunit == 0.3.*