thedevsaddam / govalidator

Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
MIT License
1.32k stars 122 forks source link

Reject superfluous properties #103

Closed ghost closed 3 years ago

ghost commented 3 years ago

Does the validator fail if properties are found in the request body that are not included in the ruleset? Is there an option to enable this or another way to easily achieve it.

If not, I will write a sanitise function to clean the body of these properties using a map[string]interface{} and the ruleset