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
When the first property is empty (''), it is the pattern error that is generated
{key: 'first', message: 'At path: first -- Expected a string matching `/^[A-Za-z\' -]+$/` but received ""', refinement: 'pattern', value: ''}
key
:
"first"
message
:
"At path: first -- Expected a string matching `/^[A-Za-z' -]+$/` but received \"\""
refinement
:
"pattern"
value
:
""
How can I get the error message to show the 'nonempty' refinement
NB. I am actually attempting to make a text input required.