UNPKG

openapi-validator-middleware

Version:

Fast input validation middleware using OpenAPI 2.0 (formerly Swagger) and 3.0 definitions file and ajv

121 lines (120 loc) 3.03 kB
{ "name": "openapi-validator-middleware", "version": "3.2.6", "description": "Fast input validation middleware using OpenAPI 2.0 (formerly Swagger) and 3.0 definitions file and ajv", "main": "src/middleware.js", "types": "types/index.d.ts", "files": [ "src", "types/index.d.ts" ], "nyc": { "report-dir": "./coverage", "lines": 95, "statements": 95, "functions": 100, "branches": 90, "include": [ "src/*.js" ], "exclude": [ "index.js" ], "reporter": [ "lcov", "text" ], "cache": true, "all": true }, "scripts": { "lint": "eslint .", "lint:types": "dtslint types && eslint types/index.d.ts", "lint:fix": "eslint --fix .", "test": "mocha test/**/*-test.js", "test:ci": "npm run lint && npm run lint:types && npm run test:coverage", "test:coverage": "nyc mocha test/**/*-test.js", "coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", "doctoc": "npm install -g doctoc && doctoc README.md" }, "repository": { "type": "git", "url": "git+https://github.com/PayU/openapi-validator-middleware.git" }, "keywords": [ "ajv", "express", "swagger", "openapi", "open api", "input validation", "request", "validation", "validator", "koa", "fastify", "middleware" ], "bugs": { "url": "https://github.com/PayU/openapi-validator-middleware/issues" }, "homepage": "https://github.com/PayU/openapi-validator-middleware", "author": "Idan Tovi", "license": "Apache-2.0", "dependencies": { "api-schema-builder": "^2.0.11", "auto-bind": "^4.0.0", "nano-memoize": "^1.2.1" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "3.10.1", "@typescript-eslint/parser": "3.10.1", "ajv-keywords": "^3.5.2", "body-parser": "^1.19.0", "chai": "^4.3.4", "clear-module": "^3.2.0", "coveralls": "^3.1.1", "dtslint": "^4.1.5", "eslint": "^7.32.0", "eslint-config-standard": "^14.1.1", "eslint-plugin-chai-friendly": "^0.6.0", "eslint-plugin-import": "^2.24.2", "eslint-plugin-mocha": "^7.0.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "express": "^4.17.1", "fastify": "^3.20.2", "fastify-plugin": "^3.0.0", "koa": "^2.13.0", "koa-bodyparser": "^4.3.0", "koa-multer": "^1.0.2", "koa-router": "^10.1.1", "mocha": "^8.4.0", "multer": "^1.4.3", "npm-force-resolutions": "0.0.10", "nyc": "^15.1.0", "request": "^2.88.2", "rewire": "^4.0.1", "sinon": "^9.2.4", "sinon-chai": "^3.7.0", "supertest": "^4.0.2", "typescript": "4.0.5", "uri-js": "^4.4.0" }, "resolutions": {}, "peerDependencies": { "uri-js": "^4.2.2" }, "peerDependenciesMeta": { "uri-js": { "optional": true } }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "engines": { "node": ">=8" } }