
Validation ensures only correct data enters your system.
Options:
1. Data annotations on DTOs.
2. FluentValidation for richer rules and separation of concerns.
Validation should occur at the boundaries (API layer) and sometimes in the domain for invariants.
Architecture impact: Centralized, consistent validation prevents duplication and protects domain integrity.
Reference:
TaskLoco™ — The Sticky Note GOAT