Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Hapi 10 #48

Merged
merged 3 commits into from
Sep 18, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# hapi-swaggered
Yet another hapi plugin providing swagger compliant API specifications (swagger specs 2.0) based on routes and joi schemas to be used with swagger-ui.

Supports hapi 8.x and 9.x
Supports hapi 8.x, 9.x and 10.x

[![Build Status](https://img.shields.io/travis/z0mt3c/hapi-swaggered/master.svg)](https://travis-ci.org/z0mt3c/hapi-swaggered)
[![Coverage Status](https://img.shields.io/coveralls/z0mt3c/hapi-swaggered/master.svg)](https://coveralls.io/r/z0mt3c/hapi-swaggered?branch=master)
Expand Down Expand Up @@ -54,7 +54,7 @@ This plugin does not include the [swagger-ui](https://github.com/wordnik/swagger
* `responseValidation`: boolean, turn response validation on and off for hapi-swaggered routes, defaults to false
* `auth`: authentication configuration [hapijs documentation](https://github.com/hapijs/hapi/blob/master/API.md#route-options) (default to undefined)

## Example (Hapi 9)
## Example (Hapi 9 and 10)
Example configuration for hapi-swaggered + hapi-swaggered-ui

```js
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"wreck": "^6.0.0"
},
"scripts": {
"test": "standard && lab -c -t 99"
"lint": "standard",
"test": "lab -c -t 99",
"posttest": "npm run lint"
},
"peerDependencies": {
"hapi": ">= 7.x.x < 10.0.0"
"hapi": ">= 7.x.x < 11.0.0"
}
}
1 change: 0 additions & 1 deletion test/plugin-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,5 @@ describe('plugin', function () {
})
})
})

})
})