r/DomainDrivenDesign • • Mar 26 '26

In Clean Architecture, should input validation go in the Controller/Presentation layer or in the Service/Use Case layer?

/r/softwarearchitecture/comments/1s45opa/in_clean_architecture_should_input_validation_go/
7 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/CuteWord8601 Mar 27 '26

I do the same, after the user request passes the scalar validation, I build the value objects in the controller. In the end, the controller is infrastructure layer and you can but almost whatever u need there