Currently the presence of fields not described by constraints will result in Validation.Failure. This should be optional, so additional fields can be included.
Problems
Currently it is impossible to accept arbitrary keys - all keys are automatically checked against a whitelist derived from the keys included in constraints
Currently it is impossible to validate arbitrary keys - Even if the whitelisting of keys was optional, there is no way to validate keys without explicitly targeting them with names. This prevents use of arbitrary object maps.
Solution
Make the whitelisting of keys optional
Accept a regex as the value for name that will be applied to all fields with names that match.
Currently the presence of fields not described by constraints will result in
Validation.Failure
. This should be optional, so additional fields can be included.Problems
Solution
name
that will be applied to all fields with names that match.