3 ms·
Doing validation in the method body scales terribly, is hard to maintain, isn't very testable, etc. However, defining the validation schema in the parameter li
by bluefirebrand 4y ago
Doing validation in the method body scales terribly, is hard to maintain, isn't very testable, etc.
However, defining the validation schema in the parameter list is ugly too. Define it elsewhere and have it run through a validation middleware.