removing problematic clone operation
adding clone operation
fixing iteration bug and using _.forOwn()
clean up formatting
Merge pull request #71 from paulhill/master

fixing iteration bug, using _.forOwn(), cleaning up formatting
fixed sample
updated version
added check for format string
upped version
Support OData requests with URI like collection('id')
Export errorHandler method

Exporting the errorHandler method as public API allows handling of errors in async code.

Example:
var swagger    = require("swagger-node-express");

exports.remove = {
    'spec' : {
      "description" : "Deletes an object",
      "path" : "/objects/{id}",
      "notes" : "",
      "summary" : "",
      "method" : "DELETE",
      "params" : [swagger.pathParam("id", "ID of object to delete", "string")],
      "errorResponses" : [ swagger.errors.notFound('id'), swagger.errors.invalid('id') ],
      "nickname" : "remove"
    },
    'action' : function(req, res) {

      if (!req.params.id) {
        throw swagger.errors.invalid('id');
      }

      req.coll.removeById(req.params.id, function(err, result) {
        if (err) {
          swagger.errorHandler(req, res, swagger.errors.invalid('collection'));
        }

        res.send({msg : 'success'});
      });
    }
  };
Merge pull request #77 from pascal-bach/master

Export errorHandler method
replace bodyParser
updated to 1.2 swagger-spec
added swagger-ui
Express routes defined via 'action' now can take an Express next callback parameter
Merge pull request #84 from tcbeutler/develop

Allow swagger 'action' functions to access next() from Express.
updated sample
Merge pull request #81 from vohof/patch/01

replace bodyParser
updated sample per #81