lib-schema
install
npm install --save lib-schema
usage
Define a json schema
Create a marshaller from the schema
var schema = ;var types = ; var job = typesjob;// job is a validated object against the schema typesjob; // throws because args is required parameter
details
- types string and number are build in
- all other types must be declared before they're used