Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not re-validate messages with validate() already called with no errors #50

Open
alexander-yevsyukov opened this issue Oct 6, 2022 · 0 comments

Comments

@alexander-yevsyukov
Copy link
Collaborator

... since Messages are immutable.

We use runtime validate in some framework places. For example, CommandFactory validates incoming command messages when producing commands.

This:

  1. It causes some side effects like warnings on command ID fields of primitive integer types.
  2. Is unnecessary if the message was already validated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant