Closed acalejos closed 1 year ago
Given Elixir has the concept of range and they are always closed, my suggestion is to use our ranges, and validate on them as a struct. If you really need open/closed stuff, then I think a custom validator is indeed the way to go. :)
Is there any appetite for a
:in_domain
type to be supported directly by the library? I've been using custom type to do it but I figure that it's probably a common enough use case that others might benefit from it being in the library.Something like:
EDIT: Originally I used the term
range
but I changed it todomain
to avoid confusion w/ the keyword