Does references in application layer to mediatr and fluent validation break the clean architecture principles? #1343
Unanswered
VadimGaskov
asked this question in
Q&A
Replies: 2 comments 1 reply
-
No. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Using MediatR and FluentValidation in the Application layer is a common and accepted practice. The Application layer defines use cases and coordination logic, and these libraries help with that. They are not infrastructure concerns, so it's fine for the Application layer to reference them directly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Shouldn't all references to external libraries be in the infrastructure layer, implementing the application layer's interfaces?
Beta Was this translation helpful? Give feedback.
All reactions