1.6.1 • Published 7 years ago

subschema-server-utils v1.6.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Subschema Server Utils

This project provides validateFactory for easy consumption on the server side. When the server only needs to validate data against a schema it may or may not need to be

Installation

  npm i subschema-server-utils --save
 

Usage:

validateFactory returns a function, takes a schema and a loader. The returned function takes a value or valueManager and returns a promise. If no errors, the promise returns null, other wise an object containing the errors is returned

see tests for more information on usage.

There are two usable files, that provide this. One has all the dependencies built in (the default). The other depends on subschema to use the existing subschema module.

var externals = require('subschema-server-utils/externals')
1.6.1

7 years ago

1.6.0

7 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.9

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago