This plugin is included by default in Seneca 2.x.
NOTE: This plugin will not be included by default in Seneca 3.x and above, and will need to be installed manually.
Supports Seneca versions 1.x - 3.x
This is needed only for Seneca 3.x and above.
npm install seneca-parambulator
And in your code:
You can validate action messages by providing parambulator rules as part of the action definition.
// not needed if Seneca 2.x// valid// invalid as no b value
Any properties in the action pattern that are not constants are interpreted as_ parambulator_ rules.
The Senecajs org encourages open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.
Copyright (c) 2016, Richard Rodger and other contributors. Licensed under MIT.