Skip to content

payload validation for routes that have multiple method arguments #2659

@ugate

Description

@ugate

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

Metadata

Metadata

Assignees

Labels

supportQuestions, discussions, and general support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions