You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather then set the type as String, and then validate the format of that string. We realise we can achieve the same result using validators, but we think this would be a more elegant, declarative syntax.
Is this possible?
Thanks,
Louis
The text was updated successfully, but these errors were encountered:
It probably is with a bit of work - you need to dig through the implementation because type is something special. Grape's validation is based on Virtus (https://github.com/solnic/virtus), so I think defining a Virtus type for UUID would be sufficient. I don't know exactly how, will leave this open as a feature request.
Hello! Thank you for Grape. :)
We would like to be able to do something like this:
Rather then set the type as String, and then validate the format of that string. We realise we can achieve the same result using validators, but we think this would be a more elegant, declarative syntax.
Is this possible?
Thanks,
Louis
The text was updated successfully, but these errors were encountered: