{"library":"express-oas-validator","type":"library","category":null,"description":"express-oas-validator is an Express.js middleware library designed for validating API requests and responses against an OpenAPI Specification (OAS) definition. The library, currently at stable version 3.0.1, provides two core functionalities: `validateRequest` for incoming request validation (body, headers, path, query parameters) and `validateResponse` for outgoing response payload validation. It differentiates itself by offering both request and response validation within the same middleware, unlike some alternatives that focus solely on requests. The library's `init` function allows developers to create multiple validator instances for different OpenAPI definitions within a single application. Recent updates, including v3.0.1, have added full TypeScript support, enhancing developer experience. While the release cadence is not strictly regular, major versions have introduced significant improvements and new features.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","openapi","express","middleware","validator","swagger"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-oas-validator","imports":["import { init } from 'express-oas-validator';","const { validateRequest } = init(swaggerDefinition);","const { validateResponse } = init(swaggerDefinition);"]},{"cmd":"yarn add express-oas-validator","imports":[]},{"cmd":"pnpm add express-oas-validator","imports":[]}],"homepage":null,"github":"https://github.com/BRIKEV/express-oas-validator","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-oas-validator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-oas-validator/compatibility"}}