Skip to content

Validation not throwing error if request.body is undefined #176

@abdullahshahidkamelpay

Description

@abdullahshahidkamelpay

If I pass empty object in body, the validation works and I get error for missing fields in Joi schema as expected. But when I pass nothing in the request body, I get no error and the request just moves to next handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions