code: function formatProperties (properties) {
      const result = {}
      Object.keys(properties).forEach(key => {
        debug('formatProperties: key: ' + key)
        if (properties.hasOwnProperty(key)) {
          result[ key ] = _.clone(properties[ key ])
          result[ key ].type = properties[ key ].type.name
        }
      })
      return result
    }
docs: Helper method for format the type of the properties