code: function generateModelDefinition () {
      var definition = {};
      var schema = controller.model().schema;
  
      definition.id = capitalize(controller.model().singular());
      definition.properties = {};
  
      Object.keys(schema.paths).forEach(function (name) {
        var path = schema.paths[name];
        var property = generatePropertyDefinition(name, path);
        definition.properties[name] = property;
      });
  
      Object.keys(schema.virtuals).forEach(function (name) {
        var path = schema.virtuals[name];
        var property = generatePropertyDefinition(name, path);
        definition.properties[name] = property;
      });
  
      return definition;
    }
docs: A method used to generate a Swagger model definition for a controller