Skip to content

Decoupled validation from Models

Choose a tag to compare

@juanparati juanparati released this 19 Dec 11:05
· 3 commits to master since this release

Breaking changes:

  • Model validation was decoupled, use "HasValidation" trait instead.

The validation rules were decoupled due the following reason:

  • Input data may be different than serialized data and it may raise unexpected exceptions
  • Single reponsiblity principle so input validation is separated from model logic
  • Removing automatic validation will allow polymorphic embed models.