WIP
TODO
$ npm install --save forma
// TODO
TODO
TODO
Returns: Function or String
Generates a function to validate a single value/field.
Important: Do not use this to validate Arrays or Objects!
Type: Object
The rule's block definition – see Rule Definitions for more.
Type: Boolean
Default: false
Returns: Object or false
Instantly validate the data against a ruleset.
Note: Meant for singleton/one-off validations!
Useforma.compile()if you plan to reuse the sameschemamultiple times.
Type: Object
The set of rule definitions for your incoming data object – see Schemas for more.
Type: Object
The value object to be validated.
Returns: Function
Generates an optimized function that can be reused to validate incoming data.
Note: Ideal for repeat validations – huge performance boost!
Useforma.validate()if you only plan to validate once.
Type: Object
The set of rule definitions for your incoming data object – see Schemas for more.
TODO
MIT © Luke Edwards