intridea/grape — pull request #222 by schmurfy (2012-08-05 13:27:29+00:00)
Title: added nested attributes validation support

I added support for nested attribute validations to allow this:

```ruby
params do
requires 'user.id', type: Integer
requires 'user.name', type: String
end
```

This works alongside what I and @adamgotterer did and allow both the symbol syntax as well as this dotted string syntax.

I think we can generate these validations to validate Virtus value objects but there will be some scope issues (a validation should be able to create other validations which create some issues with the current interface).