DEV Community

Discussion on: The easy and lightweight way to validate data in React Components & Node.js

Collapse
 
dullin profile image
Hugo Leblanc

Question about the design:

Why did you use a single string with separators to create your validation scheme? Is it taken from another format? Is it easier to parse than an object instead?

Collapse
 
malkhazidartsmelidze profile image
Malkhazi Dartsmelidze

Nice note, Hugo. You got the point. Laravel Framework has similar validation rules, also I think this design makes package more compact and easy to use

Collapse
 
malkhazidartsmelidze profile image
Malkhazi Dartsmelidze

Hello again, Hugo. I released new update, which made possible to change design. You can look details here: dev.to/malkhazidartsmelidze/simple...

Collapse
 
malkhazidartsmelidze profile image
Malkhazi Dartsmelidze