Validate query and payload #20

Merged
joeybaker merged 14 commits from error-on-invalid-where into master 2016-09-06 18:29:40 +00:00
Showing only changes of commit f33c8da55d - Show all commits

View File

@ -260,6 +260,9 @@ export const update = ({ server, model, prefix = '/', config }) => {
config: _.defaultsDeep(config, { config: _.defaultsDeep(config, {
validate: { validate: {
payload: joi.object().required(), payload: joi.object().required(),
params: joi.object().keys({
id: joi.any(),
}),
}, },
}), }),
}); });