We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fcba44 + f187053 commit 3d91cfeCopy full SHA for 3d91cfe
1 file changed
common/models/meta.js
@@ -51,6 +51,14 @@ module.exports = function (Meta) {
51
var result = {};
52
modelNames.forEach(function (modelName) {
53
var model = models[modelName];
54
+
55
+ //add type transformation until ES6
56
+ for(var key in model.definition.properties) {
57
+ var type=model.definition.properties[key].type.toString().toLowerCase().substr('function '.length);
58
+ type=type.substr(0, type.indexOf('('));
59
+ model.definition.properties[key].stringType=type;
60
+ }
61
62
result[modelName] = model.definition.properties;
63
});
64
process.nextTick(function () {
0 commit comments