Timeline for Should I perform simple validation (not null, max length, etc.) in a web api controller and duplicate in a command handler?
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 15, 2022 at 12:32 | answer | added | ArwynFr | timeline score: 3 | |
| Feb 15, 2022 at 10:25 | comment | added | Aleksander Chelpski | done............................... | |
| Feb 15, 2022 at 10:24 | history | edited | Aleksander Chelpski | edited tags | |
| Feb 15, 2022 at 6:31 | comment | added | Rik D | DDD is about designing software that solves business problems. Since this question is not about that, please update the question and remove the DDD references. | |
| Feb 15, 2022 at 5:02 | answer | added | VoiceOfUnreason | timeline score: 2 | |
| Feb 15, 2022 at 5:00 | comment | added | Aleksander Chelpski | I don't have any business logic for sending email. | |
| Feb 14, 2022 at 23:20 | comment | added | Rik D | @GregBurghardt those annotations are useful when generating documentation like open api/swagger, in addition to validating API input. Additional command validation with FluentValidation can still be useful if the commands have additional parameters coming from other sources. I’m missing the DDD aspect in this question; is there even any business domain logic when sending emails? | |
| Feb 14, 2022 at 19:55 | answer | added | Andreas ZUERCHER | timeline score: -1 | |
| Feb 14, 2022 at 19:48 | comment | added | Greg Burghardt | I think you are mixing tools. The annotations are for when you do not have an alternative for validation. If you can use FluentValidation, why have duplicate rules? | |
| S Feb 14, 2022 at 19:20 | review | First questions | |||
| Feb 14, 2022 at 22:48 | |||||
| S Feb 14, 2022 at 19:20 | history | asked | Aleksander Chelpski | CC BY-SA 4.0 |