expected request:
{
"name": "Raju",
"email": "[email protected]"
}
Actual:
{
"name": "Raju",
"email": "[email protected]",
"xyz" : "xxxx"
}
I would like to throw an error or escape for "xyz" in a validation/router level. Am using the fastest-validator.
is there any other validator supports this feature?
Any help appreciated
You can set
$$strict: true
like below example: