Is there a way to handle payload validation for routes that have multiple method arguments?
server.route({
method: [ 'GET', 'POST' ],
config: {
validate: {
payload: {
value: Joi.string().required()
}
}
}
});
I get the following error:
Cannot validate HEAD or GET requests
v8.8.0
Is there a way to handle
payloadvalidation for routes that have multiplemethodarguments?I get the following error:
Cannot validate HEAD or GET requestsv8.8.0