deet
A bad data repellent. Use to make your API more intelligent and expressive, and safer, with JSONSchema validation
Last updated 5 years ago by ehealth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deet 
SYNC missed versions from official npm registry.

deet

Middleware enabling validation of JSON payloads sent toExpressAPI endpoints against JSON Schemas.

Why validate with JSON schemas?

  • Simple - JSON schemas are a simple and expressive,standardway to describe the data that your API expects to receive.
  • Standard - That part where you have to design and implement a payload description and validation model? Already done.
  • Safe - Your application never sees payloads that fail to validate. Failures are isolated and self-managing, external to your application logic. Can also help with XSS and other spoofing attacks.
  • Expressive - Validation errors precisely identify the location and type of error, with the validation rules open and accessible.
  • Expressive - Creating a JSON Schema documents API requirements.
  • Expressive - JSON Schemas extend JSON syntax, providing a powerful and well understood data-interchange format for distributed applications.

Installation

npm install deet

About JSON schemas

Testing

node test

or

npm test

Current Tags

  • 1.4.3                                ...           latest (5 years ago)

7 Versions

  • 1.4.3                                ...           5 years ago
  • 1.4.2                                ...           5 years ago
  • 1.4.1                                ...           5 years ago
  • 1.4.0                                ...           5 years ago
  • 1.3.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |