Express Openapi Validator

screenshot of Express Openapi Validator
express

Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.1.x or 3.0.x specification

Overview:

express-openapi-validator is a library designed for ExpressJS that automatically validates API requests and responses using an OpenAPI 3 specification. This unopinionated tool allows for flexibility in coding conventions and project layout, making it suitable for both new and existing API applications.

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 support

Summary:

express-openapi-validator is a versatile tool for ExpressJS applications, providing automatic validation of API requests and responses based on an OpenAPI 3 specification. With features such as request and response validation, security validation, and support for custom formats, this library offers flexibility in coding practices while ensuring API compliance with the designated specification.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.