Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x 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 specification, then define and implement routes the way you prefer. An OpenApi validator for ExpressJS that automatically validates API requests and responses using an OpenAPI 3 specification. Ensure express is configured with all relevant body parsers. Body parser middleware functions must be specified prior to any validated routes.

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

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow express-openapi-validator

express-openapi-validator Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of express-openapi-validator!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks, TypeScript Web Development Software, TypeScript JSON Serialization Libraries

Registered

2022-11-01