Contributions from the community are welcome. Please follow this guide when logging issues or helping maintain the code.
All issues should be created using the new issue form.
- Please check the "Features from Hapi that cannot be ported to Swagger" section of the usage guide.
- Try the plugin option
debug = trueto see if any errors or warning are logged. see Debugging - Clearly describe the issue including steps to reproduce it. Also include example code of any
routesthat cause an issue.
Code changes are welcome and should follow the guidelines below. If you wish to add a new feature or make a major change it is worth raising an issue first.
- Fork the repository on GitHub.
- Fix the issue ensuring that your code follows the style guide.
- Add tests for your new code ensuring that you have 100% code coverage (we can help you reach 100% but will not merge without it).
- Run
npm testto generate a report of test coverage
- Run
- Pull requests should be made to the master branch.
The project has integration and unit tests. To run the test within the project type one of the following commands. or
npm testor
lab
lab -r html -o coverage.html
lab -r html -o coverage.html --lint
lab -r console -o stdout -r html -o coverage.html --lintTo publish, just run:
npm version $VERSION_NUMBERWhere $VERSION_NUMBER is appropriate semver version for the current release. The npm version command will trigger:
npm testnpm publishgit pushto origin