1.0.0 • Published 8 years ago

lcm-validate-body v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

Build Status Coverage Status Dependency Status devDependency Status

lcm-validate-body

Middleware for validating the request body using a json-schema.

Install

npm i --save lcm-validate-body

Usage

import connect from "lambda-connect";
import validateBody from "lcm-validate-body";

const schema = {type: "object"};

export const handler = connect()
    .use(validateBody(schema));
1.0.0

8 years ago