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
npm i subschema-server-utils --save
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')