An Oompa middleware to ensure payload keys
const Oompa = ;const tokenize = ;const ensure = ;const schema = ;const SECRET = 'foobar';const server = schema;server;server;server;server;
To make sure a certain task has all of its required payload properties.
- type is the task type you wish to ensure the presence if certain keys for.
- keys is the list of keys you wish to ensure are in the task's payload.
The request does not change in any way, but if an ensured key is missing, the request is reject early.