This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Release Notes | ||
|
||
### swagger-node 0.7.0, swagger-node-runner 0.5.0 | ||
|
||
#### New features | ||
|
||
* Request handing pipeline is now fully configurable | ||
* Application configuration is now driven by the [config module](https://github.com/lorenwest/node-config/wiki/Configuration-Files) to allow a ton of flexibility in setting up configurations and routes based on environment. | ||
* [Security handlers]() can be declared in config in app.js. Example: | ||
|
||
```javascript | ||
config.swaggerSecurityHandlers = { | ||
oauth2: function securityHandler1(req, authOrSecDef, scopesOrApiKey, cb) { | ||
// your security code | ||
cb(); | ||
} | ||
}; | ||
``` | ||
|
||
#### Bug Fixes | ||
|
||
* json_error_handler should work in all container environments (mapErrorsToJson did not) | ||
|
||
#### Breaking Changes | ||
|
||
* `mapErrorsToJson` config option is now configured as an onError handler: `onError: json_error_handler` | ||
* `docEndpoints` raw config option is now declared in Swagger and handled via a pipe: `swagger_raw` | ||
|
||
#### Converting From Previous Version | ||
|
||
1. Update your package.json to use the new middleware versions: "^0.1.0". (eg. "swagger-connect": "^0.1.0") | ||
2. Update your application dependencies: npm update. | ||
3. Existing config should generally work, but you should update your config to the [new format](./configuration.md). |