Bug Report Checklist
Description
pojo.moustache's CustomTypeAdapterFactory.create populates properties by testing for e.g. primitive types for values. It's else block makes an assumption that if it isn't a primitive type, it must be an object:
gson.toJsonTree(entry.getValue()).getAsJsonObject()
This fails when considering arrays.
openapi-generator version
master
Suggest a fix
I'll raise a PR.