component / model

Minimalistic extensible data models
122 stars 40 forks source link

Implement `required`-property #60

Open hkjels opened 10 years ago

hkjels commented 10 years ago

model.isValid only runs validation-checks. The Readme claims that you can use a required-property on your attributes, but it is not yet implemented.

cristiandouce commented 10 years ago

There are plugins for that.

Check this one out: https://github.com/modella/validators

I think it should match the current component/model API and work ok.