Passing a name for a primitive value?
Is there a way to pass a name to a primitive value being checked, so that in the error message you get shown "(name) must be..." like for object properties?
1 Reply
Currently I am using this little helper to do it:
But I wondered if there is a native api to do this that I missed?