Pass in the Entire Context to the Validator #371
abhirathmahipal
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Since such a validation involves multiple fields, it is best placed at the model level. The As a contra, supporting access to other fields within validators will result in more complex code because:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current API
I've left some annotations in the code below, please read the comments as well :)
Suggested API
The same should probably apply for
Aggregates, Entities, Value Objects and Commands
in my opinion.Beta Was this translation helpful? Give feedback.
All reactions