Skip to content

Commit

Permalink
Updating sample to comply with Swagger v2
Browse files Browse the repository at this point in the history
  • Loading branch information
cikasfm authored Nov 17, 2016
1 parent dd1aa0a commit a85c4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ model and add fields.
```javascript
/**
* @swagger
* definition:
* definitions:
* NewUser:
* type: object
* required:
Expand Down Expand Up @@ -212,4 +212,4 @@ Common usage:
- Help menu: `./bin/swagger-jsdoc -h`
- Specify a swagger definition file: `./bin/swagger-jsdoc -d example/swaggerDef.js` - could be any .js or .json file which will be `require()`-ed and parsed/validated as JSON.
- Specify files with documentation: `./bin/swagger-jsdoc example/routes.js example/routes2.js` - free form input, can be before or after definition
- Specify output file (optional): `./bin/swagger-jsdoc -o output.json` - swaggerSpec.json will be created if this is not set.
- Specify output file (optional): `./bin/swagger-jsdoc -o output.json` - swaggerSpec.json will be created if this is not set.

0 comments on commit a85c4b8

Please sign in to comment.