In DDD
, the Application
layer is supposed to just perform coordination tasks, whereas the Domain
layer is responsible of validating the business rules.
My question is about validating the domain object properties. For example, I need to validate that a required property has some value in it before persisting it to the database through repositories.
In terms of DDD
, is it acceptable to perform this sort of property validation in the Application
layer?