Why Megh has its own validator (and doesn't just use class-validator)
DEV Community
Why Megh has its own validator (and doesn't just use class-validator)
class-validator re-reads the same rules on every request. Megh compiles each DTO into one function instead, making validation ~13× faster on valid bodies with the same decorators, errors and messages.
0 comments
No comments yet.