3 ms·
I have done, and still do, a lot of "shotgun validation" ;-( But after having read the article it's still not clear how to log illegal values or entities if th
by bambax 7y ago
I have done, and still do, a lot of "shotgun validation" ;-(
But after having read the article it's still not clear how to log illegal values or entities if they can't even be represented in the data model? How do you talk about things you can't name?
- thedufer 7y agoYou can log them by serializing the pre-parsed data model, unless I've misunderstood the question.
- matt_kantor 7y agoYou could return an error type wrapping the original value (and any other useful context) using Either instead of Maybe.