Ask EJ: Some lib for data validation/domain models with ES6?
▼1 up and 0 down, posted by
1 up and 0 down, posted by
I'm now using plain ES6 "classes" with Joi validation, but I'd like something like Ruby's ActiveModel (http://api.rubyonrails.org/classes/ActiveModel/Model.html) or Virtus (https://github.com/solnic/virtus). I really like Ampersand State (https://github.com/AmpersandJS/ampersand-state) but I'd like to use something that uses ES6 classes (to keep that the standard of my project) and something less verbose than Joi (but as good as). Suggestions?