chai-validate-response
Version:
A chai assertion plugin for validating Responses with a Swagger / OAI schema
88 lines (87 loc) • 2.57 kB
JSON
{
"name": "chai-validate-response",
"version": "0.0.2",
"description": "A chai assertion plugin for validating Responses with a Swagger / OAI schema",
"main": "lib/chai-validate-response.js",
"scripts": {
"build": "babel --source-maps -d lib/ src/",
"lint": "eslint --ignore-path .gitignore .",
"prepublish": "npm run lint && npm run build && npm run build",
"test": "mocha --compilers js:babel-core/register",
"precommit": "npm run lint",
"commitmsg": "validate-commit-msg",
"prepush": "npm test"
},
"repository": {
"type": "git",
"url": "github.com/tmf/chai-validate-request"
},
"keywords": [
"chai",
"validate",
"z-schema",
"swagger",
"oai",
"api",
"response"
],
"author": "Tom Forrer <tom.forrer@gmail.com> (github.com/tmf)",
"license": "MIT",
"engines": {
"node": ">=4.2.0"
},
"dependencies": {
"swagger-parser": "^3.4.1",
"z-schema": "^3.17.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.10.4",
"babel-preset-es2015": "^6.9.0",
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"eslint": "^2.13.1",
"eslint-config-eslint": "^3.0.0",
"express": "^4.14.0",
"husky": "^0.14.3",
"mocha": "^2.5.3",
"supertest": "^1.2.0",
"validate-commit-msg": "^2.6.1",
"whatwg-fetch": "^1.0.0"
},
"config": {
"validate-commit-msg": {
"helpMessage": "\n-----------\n\nThere was a small validation problem with your commit message:\n\n> %s\n\nIt's not a huge problem, but a valid commit message will ensure\nwhether your commit triggers a release or not (and sometimes the\ncommit won't need to trigger a commit). If you really need to, you\ncan skip the validation using `git commit --no-verify`.\n\nIf your commit is a fix, it might want to be:\n\n> fix: storage bug\n\nOr a feature:\n\n> feat: added new storage process\n\nThere's also `docs`, `test` and `chore` and a few more. To read\nhow the commit message should be formatted, please see this short\npost: https://git.io/v2Nnm\n"
}
},
"eslintConfig": {
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}
}