profile
viewpoint

Ask questionsadd custom validation message to IsDate, isAlpha, Is ,.....

for example @IsDate(msg:"please enter a valid date")

RobinBuschmann/sequelize-typescript

Answer questions contra

You can see this is implemented for some validators but not all of them: https://github.com/RobinBuschmann/sequelize-typescript/blob/master/src/validation/length.ts

You would basically just need to copy this to every validator in this folder, it wouldn't be a massive lift.

useful!
source:https://uonfu.com/
answerer
contra contra @staeco Phoenix, AZ https://contra.io Engineer/founder - @staeco • @gulpjs • @wearefractal • @genomejs + more
Github User Rank List