playframework/playframework — pull request #2377 by jeroenr (2014-02-13 14:01:59+00:00)
Title: Created dynamic parameter validator 

Allows easy validation of multiple parameters against multiple constraints. To check, for instance, if a few numeric parameters are within range [0, 100]:
```
def myAction(param1: Option[Int], param2: Option[Int]) = Action {
implicit request =>
ParameterValidator(Seq(Contraints.min(0), Constraints.max(100), param1, param2) match {
case Valid => Ok
case Invalid(errors) => BadRequest(errors.mkstring(", "))
}
```

Unit tests are included