Do not re-validate messages with `validate()` already called with no errors
Opened this issue · 0 comments
alexander-yevsyukov commented
... since Message
s are immutable.
We use runtime validate in some framework places. For example, CommandFactory
validates incoming command messages when producing commands.
This:
- It causes some side effects like warnings on command ID fields of primitive integer types.
- Is unnecessary if the message was already validated.