diff --git a/lib/model-helper.js b/lib/model-helper.js index 3da950e..ddb4d79 100644 --- a/lib/model-helper.js +++ b/lib/model-helper.js @@ -97,7 +97,8 @@ var modelHelper = module.exports = { out[name] = { id: name, - description: typeConverter.convertText(def.settings.description), + description: typeConverter.convertText( + def.description || (def.settings && def.settings.description)), properties: properties, required: required };