forked from loafle/openapi-generator-original
Allow passing just objects in APIs using Aesons Value type
This commit is contained in:
parent
c49b22bcdd
commit
80015a8a86
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user