mattt/sinatra-param — pull request #5 by rlipman (2012-06-14 18:04:07+00:00)
Title: Min and max length for parameters

Any parameter type that response to `#length` can use this validation, including Strings and Arrays. Values are inclusive, so `max_length: 25` will validate on an a value of length 25, but not length 26.