{"repo":"cdimascio/express-openapi-validator","free":true,"listed":false,"github":"https://github.com/cdimascio/express-openapi-validator","clone":"git clone https://github.com/cdimascio/express-openapi-validator.git","description":"🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.1.x or 3.0.x specification","language":"TypeScript","stars":1005,"topics":["openapi3","express-middleware","nodejs","request-validation","expressjs","middleware","rest-api","express","openapi","connect-middleware"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"🦋 express-openapi-validator An OpenApi validator for ExpressJS that automatically validates API requests and responses using an OpenAPI 3 specification. 🦋express-openapi-validator is an unopinionated library that integrates with new and existing API applications. express-openapi-validator lets you write code the way you want; it does not impose any coding convention or project layout. Simply, install the validator onto your express app, point it to your OpenAPI 3.0.x or 3.1.x specification, then define and implement routes the way you prefer. See an example. Features: - ✔️ request validation - ✔️ response validation (json only) - 👮 security validation / custom security functions - 👽 3rd party / custom formats / custom data serialization-deserialization - 🧵 optionally auto-map OpenAPI endpoints to Express handler functions - ✂️ \\$ref support; split specs over multiple files - 🎈 file upload - ✏️ OpenAPI 3.0.x and 3.1.x spec support - ✨ Express 4 and 5 support Docs: - 📖 documentation Express 5 support available in =v5.5.0 ! OAS 3.1 support available in =v5.4.0 ! NestJS Koa and Fastify now available! 🚀 Install Usage 1. Require/import the openapi validator or 2. Install the middleware 3. Register an error handler Important: Ensure express is configured with all relevant body parsers. Body parser middleware functions must be specified prior to any validated routes. See an example . Documentation See the doc for complete documenation deprecated legacy doc License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/cdimascio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cdimascio/express-openapi-validator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}