openapi-validator-middleware
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,3 +0,9 @@ | ||
# Master (Unreleased) | ||
# Master | ||
# 3.0.1 - 7 July, 2020 | ||
### Improvements | ||
- Speed-up `openapi-validator-middleware` import by lazy loading required dependencies #129 | ||
# 3.0.0 - 1 May, 2020 | ||
@@ -9,3 +15,3 @@ | ||
- fastify: Fix support for requests with queryparams #117 | ||
- fastify: Implement endopoint skiplist logic #117 | ||
- fastify: Implement endpoint skiplist logic #117 | ||
@@ -12,0 +18,0 @@ ### Improvements |
{ | ||
"name": "openapi-validator-middleware", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Fast input validation middleware using OpenAPI 2.0 (formerly Swagger) and 3.0 definitions file and ajv", | ||
@@ -47,8 +47,11 @@ "main": "src/middleware.js", | ||
"swagger", | ||
"OpenAPI", | ||
"openapi", | ||
"open api", | ||
"input validation", | ||
"request", | ||
"validation", | ||
"validator", | ||
"koa" | ||
"koa", | ||
"fastify", | ||
"middleware" | ||
], | ||
@@ -62,18 +65,18 @@ "bugs": { | ||
"dependencies": { | ||
"api-schema-builder": "^2.0.0", | ||
"api-schema-builder": "^2.0.2", | ||
"memoizee": "^0.4.14" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"@typescript-eslint/parser": "^2.29.0", | ||
"ajv-keywords": "^3.4.1", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"ajv-keywords": "^3.5.0", | ||
"body-parser": "^1.19.0", | ||
"chai": "^4.2.0", | ||
"clear-module": "^3.2.0", | ||
"coveralls": "^3.0.14", | ||
"dtslint": "^3.4.2", | ||
"coveralls": "^3.1.0", | ||
"dtslint": "^3.6.12", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-chai-friendly": "^0.4.1", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-mocha": "^6.3.0", | ||
@@ -83,12 +86,12 @@ "eslint-plugin-node": "^9.2.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"fastify": "^2.13.0", | ||
"express": "^4.17.1", | ||
"fastify": "^2.15.1", | ||
"fastify-plugin": "^1.6.1", | ||
"express": "^4.17.1", | ||
"koa": "^2.11.0", | ||
"koa-bodyparser": "^4.2.1", | ||
"koa": "^2.13.0", | ||
"koa-bodyparser": "^4.3.0", | ||
"koa-multer": "^1.0.2", | ||
"koa-router": "^7.4.0", | ||
"mocha": "^7.1.1", | ||
"mocha": "^7.2.0", | ||
"multer": "^1.4.2", | ||
"nyc": "^15.0.1", | ||
"nyc": "^15.1.0", | ||
"request": "^2.88.2", | ||
@@ -95,0 +98,0 @@ "rewire": "^4.0.1", |
@@ -21,3 +21,4 @@ # openapi-validator-middleware | ||
- [API](#api) | ||
- [openapi-validator-middleware.validate](#openapi-validator-middlewarevalidate) | ||
- [openapi-validator-middleware.validate(fastifyOptions)](#openapi-validator-middlewarevalidatefastifyoptions) | ||
- [fastifyOptions](#fastifyoptions) | ||
- [openapi-validator-middleware.init(pathToSwaggerFile, options)](#openapi-validator-middlewareinitpathtoswaggerfile-options) | ||
@@ -28,5 +29,7 @@ - [Options](#options) | ||
- [Koa](#koa) | ||
- [Fastify](#fastify) | ||
- [Important Notes](#important-notes) | ||
- [Schema Objects](#schema-objects) | ||
- [Multipart/form-data (files)](#multipartform-data-files) | ||
- [Fastify support](#fastify-support) | ||
- [Koa support](#koa-support) | ||
@@ -33,0 +36,0 @@ - [Koa packages](#koa-packages) |
@@ -36,9 +36,3 @@ // TypeScript Version: 3.2 | ||
/* eslint-disable no-unused-vars */ | ||
export enum frameworks { | ||
koa = 'koa', | ||
express = 'express', | ||
fastify = 'fastify' | ||
} | ||
/* eslint-enable no-unused-vars */ | ||
export type frameworks = 'koa' | 'express' | 'fastify'; | ||
@@ -45,0 +39,0 @@ export interface format { |
38110
245
326
Updatedapi-schema-builder@^2.0.2