Allow passing just objects in APIs using Aesons Value type

This commit is contained in:
Andrew Gibiansky 2016-04-05 12:02:08 -07:00
parent c49b22bcdd
commit 80015a8a86

View File

@ -267,6 +267,8 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf
type = typeMapping.get(swaggerType); type = typeMapping.get(swaggerType);
if (languageSpecificPrimitives.contains(type)) if (languageSpecificPrimitives.contains(type))
return toModelName(type); return toModelName(type);
} else if(swaggerType == "object") {
type = "Value";
} else { } else {
type = swaggerType; type = swaggerType;
} }