ratify

v3.0.0
A Hapi plugin for validating the schema of path, query, request body, and response body params using JSON-schema
hapi plugin JSON schema validate validation documentation docs

lint

jshint lib/* --config test/jshint/config.json

pretest

npm run lint

test

mocha --recursive --reporter spec --timeout 3000 test

test-cov

mocha --require blanket --recursive --timeout 3000 -R travis-cov test

test-lcov

mocha --require blanket --recursive --timeout 3000 -R mocha-lcov-reporter test | ./node_modules/coveralls/bin/coveralls.js

test-cov-html

mocha --require blanket --recursive --timeout 3000 -R html-cov test > test/coverage.html

clean

rm -fr node_modules
npm i ratify

Metadata

  • MIT
  • >=6.0.0
  • Unknown
  • released 12/1/2016

Downloads

Maintainers