UNPKG

openapi-contract-validator-server

Version:

Use an HTTP proxy to validate HTTP interactions against an OpenAPI Schema

93 lines (92 loc) 2.83 kB
{ "name": "openapi-contract-validator-server", "version": "0.2.0", "description": "Use an HTTP proxy to validate HTTP interactions against an OpenAPI Schema", "main": "bin/cli.js", "types": "./types", "bin": { "openapi-contract-validator-server": "bin/cli.js" }, "files": [ "bin/**", "src/**", "types/**" ], "scripts": { "start": "node . start", "test": "nyc mocha", "test:watch": "mocha --watch", "test:unit": "mocha \"test/*/unit/**\"", "test:integration": "mocha \"test/*/integration/**\"", "test:mutation": "stryker run .strykerrc.js", "test:e2e": "node ./e2e/setup.js", "test:e2e:server": "cd e2e && node ../bin/cli.js start", "test:e2e:stub": "dyson ./e2e/stubs 4000", "test:e2e:wait": "wait-on -c ./e2e/wait-on.config.js http://localhost:3000 && wait-on -c ./e2e/wait-on.config.js http://localhost:4000", "test:e2e:test": "npm run test:e2e:wait && mocha ./e2e/test --timeout 5000", "lint": "eslint --ignore-path .gitignore \"**/*.js\"", "docs": "jsdoc --configure .jsdocrc.js", "prepare": "npm run docs", "prepublishOnly": "npm run lint && npm test -- --forbid-only && npm run test:e2e -- --forbid-only" }, "keywords": [ "OpenAPI Schema", "OpenAPI", "OAS", "test", "contract", "contract-based", "provider", "provider-driven" ], "publishConfig": { "registry": "https://registry.npmjs.org" }, "author": "Sander van Beek", "license": "Apache-2.0", "dependencies": { "ansi-colors": "^4.1.1", "api-problem": "^6.0.1", "cli-diagram": "^0.2.0", "commander": "^5.0.0", "cosmiconfig": "^6.0.0", "express": "^4.17.1", "express-http-proxy": "^1.6.0", "got": "^11.1.0", "lodash": "^4.17.15", "make-promises-safe": "^5.1.0", "openapi-contract-validator": "^1.0.0" }, "devDependencies": { "@stryker-mutator/core": "^3.0.2", "@stryker-mutator/javascript-mutator": "^3.0.2", "@stryker-mutator/mocha-framework": "^3.0.2", "@stryker-mutator/mocha-runner": "^3.0.2", "chai": "^4.2.0", "chai-arrays": "^2.0.0", "chai-as-promised": "^7.1.1", "chai-string": "^1.5.0", "choma": "^1.2.1", "concurrently": "^5.1.0", "docdash": "^1.2.0", "dyson": "^3.0.2", "eslint": "^6.8.0", "eslint-config-google": "^0.14.0", "eslint-plugin-import": "^2.20.1", "eslint-plugin-mocha": "^6.3.0", "eslint-plugin-sonarjs": "^0.5.0", "eslint-plugin-unicorn": "^17.2.0", "jsdoc": "^3.6.3", "memfs": "^3.1.2", "mocha": "^7.1.0", "mocha-bundle-ui": "^3.0.0", "mocha-junit-reporter": "^1.23.3", "mocha-multi-reporters": "^1.1.7", "nyc": "^15.0.0", "outdent": "^0.7.1", "sinon": "^9.0.1", "sinon-chai": "^3.5.0", "supertest": "^4.0.2", "wait-on": "^4.0.1" } }