Skip to content
An express middleware that makes it easy to write web services that follow an Open API specification.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
docs
test
.gitignore
.repo-meta.yml
LICENSE
README.md
index.d.ts
index.js
package-lock.json
package.json

README.md

Open API Enforcer Middleware

An express middleware that makes it easy to write web services that follow an Open API specification by leveraging the tools provided in the openapi-enforcer package.

Features

  • Supports OpenAPI (Swagger) 2.0 and 3.x
  • Express middleware
  • Automatically link JavaScript functions to path endpoints
  • Parses and validates incoming requests
  • Validates responses prior to sending
  • Automatic response mocking in development
  • Option for manual response mocking in production
  • Highly configurable
  • Accepts middleware plugins

Installation

This package has openapi-enforcer as a peer dependency, so both must be installed.

npm install openapi-enforcer openapi-enforcer-middleware

Documentation

https://github.com/byu-oit/openapi-enforcer-middleware/tree/master/docs

You can’t perform that action at this time.