forked from loafle/openapi-generator-original
[haskell][server]: Set "AnyType" to Aeson.Value
(#9733)
* [haskell][server]: Set "AnyType" to `Aeson.Value` `AnyType` would not be translated to the json value type. This fixes that. * [haskell][server] Fix haddock error in `API.hs` Haddock (the Haskell documentation generator) would choke on the misplaced docstring. The heading has to appear inside the list.
This commit is contained in:
parent
856eca4ee6
commit
cdb92086db
@ -201,6 +201,7 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf
|
|||||||
typeMapping.put("number", "Double");
|
typeMapping.put("number", "Double");
|
||||||
typeMapping.put("BigDecimal", "Double");
|
typeMapping.put("BigDecimal", "Double");
|
||||||
typeMapping.put("any", "Value");
|
typeMapping.put("any", "Value");
|
||||||
|
typeMapping.put("AnyType", "Value");
|
||||||
typeMapping.put("UUID", "UUID");
|
typeMapping.put("UUID", "UUID");
|
||||||
typeMapping.put("URI", "Text");
|
typeMapping.put("URI", "Text");
|
||||||
typeMapping.put("ByteArray", "Text");
|
typeMapping.put("ByteArray", "Text");
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
-fno-warn-unused-binds -fno-warn-unused-imports -freduction-depth=328 #-}
|
-fno-warn-unused-binds -fno-warn-unused-imports -freduction-depth=328 #-}
|
||||||
|
|
||||||
module {{title}}.API
|
module {{title}}.API
|
||||||
-- * Client and Server
|
( -- * Client and Server
|
||||||
( Config(..)
|
Config(..)
|
||||||
, {{title}}Backend(..)
|
, {{title}}Backend(..)
|
||||||
, create{{title}}Client
|
, create{{title}}Client
|
||||||
, run{{title}}Server
|
, run{{title}}Server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user