Replies: 1 comment 1 reply
-
DomainValidator는 객체 생성의 검증 책임을 갖는다고 생각합니다. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
배경
#3 PR Review와 #17 Discussion과 연관되어있습니다.
#17 에서 논의된 Validator는 도메인의 상태, 즉 값을 검증하는 Validator라고 생각했습니다. 하지만 위와 같이 도메인의 메서드를 실행시킬 때 검증해야하는 로직은 도메인의 책임이 강하다 생각해 내부에 넣었는데, 이런 도메인 메서드의 Validation 또한 Validator로 이관해야하는지에 대한 논의입니
세부 주제
Beta Was this translation helpful? Give feedback.
All reactions