When writing custom validators for grape, like in this
documentation example, where does grape expect these validators to be?
In my App I am using grape + Rails.
I want to separate my different grape resources and validators into different folders and files to keep things tidy.
The issue is that when I reference one of my custom validators in a grape resource, grape cannot find the validator.
Error messages are of the form:
... /ruby-1.9.3-p429/gems/grape-0.5.0/lib/grape/validations.rb:203:in `validate': unknown validator: is_status (Grape::Exceptions::UnknownValidator)
So my question is:
When specifying a customer validator for a parameter like is_status: true, where will grape look for these validators?
I am pretty sure it has to do with a combination of grape and the autoload_paths in rails but that is as far as I got.
Thanks for any hints!