@soluzioni-futura/express-openapi
v0.1.2
Published
generate express routes from openapi definition and validate request and response
Downloads
66
Readme
@soluzioni-futura/express-openapi
Quick start
Install the package
npm i @soluzioni-futura/express-openapi
Usage
const { Router, Ref } = require("@soluzioni-futura/express-openapi")
const id = new Ref("Id", {
type: "integer",
minimum: 1,
description: "ID"
})
const email = new Ref("Email", {
type: "string",
pattern: "^\\S+@\\S+\\.\\S+$",
description: "Emaill"
})