DEV Community

Discussion on: Clean Architecture on Frontend

Collapse
bespoyasov profile image
Alex Bespoyasov Author

Depends on the implementation. As for me, for the UI validation, I usually create a validation β€œservice” that is used in the application layer.

Although, if we use canonical OOP we can place validation in the entities' constructors to avoid creating invalid entities in the first place.