I have an integer that can fall in range from -1000 to 1000 but cannot be zero. I cannot find any built-in validation that can fix this:
- Range can be only used once and does not allow exceptions or intervals
- Required does not allow zero validation
I know I can just write a custom attribute, but was wondering if I can achieve this in a simple way that I cannot find.
And ideally not regular expression, though I guess that would be the easiest way.