wordnik/swagger-node-express — pull request #6 by semu (2011-11-29 21:30:08+00:00)
Title: Internal changes, bugfixes, new example app

Hi, I have made some internal changes on swagger, fixed some bugs and added a new example app. Existing code examples are updated to use the new param and error functions.

### New example app: user
Example app for common actions for user management, needs a MongoDB for storing user accounts. See `main.js` for database connection settings.

### New tests for user example app
Added `nodeunit` tests for example app. See `tests/user.js` for hostname configuration and run with `nodeunit tests/`.

### Simplified param handling in specs
"params" : [param.path("petId", "ID of pet that needs to be fetched", "string")]

### Simplified error handling in specs
"errorResponses" : [swe.invalid('id'), swe.notFound('pet')]