Timeline for In DDD, is validation application logic, or domain logic?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 7, 2023 at 19:16 | comment | added | alaboudi | This is probably the best answer here. Validating data PRIOR to hitting the domain layer is optional. The domain layer should catch any business level validation. If one does decide to put validation outside of the domain, then it is likely to simply validate the data formal coming from the API call or CLI. But similar to what @VoiceOfUnreason said, this would be a transportation layer that one can call an anticorruption layer (a.k.a ACL) | |
| Apr 14, 2016 at 5:15 | history | answered | aryeh | CC BY-SA 3.0 |