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

Remove dependency to bean validation for message types #36

Merged
merged 3 commits into from
Dec 30, 2021

Conversation

JohT
Copy link
Owner

@JohT JohT commented Dec 29, 2021

Message value objects for commands, events and queries will likely be shared across command- and query-side parts of the application. To get these to only depend on java itself, bean validation will be removed. Instead null validation will be done inside the constructor. This has the additional advantage that an exception is thrown early when the object (e.g. a command) is created with a null value and not later when the command gets dispatched.

For reference, the use of bean validation is documented and can still be viewed in version V1.4.0 and earlier.

@JohT JohT self-assigned this Dec 29, 2021
@JohT JohT force-pushed the feature/bean-validation-removed branch from a23b918 to 96462fd Compare December 29, 2021 22:17
@JohT JohT force-pushed the feature/bean-validation-removed branch from 4bd0beb to 8713711 Compare December 30, 2021 07:24
@JohT JohT merged commit a8d3801 into master Dec 30, 2021
@JohT JohT deleted the feature/bean-validation-removed branch December 30, 2021 17:46
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

Successfully merging this pull request may close these issues.

None yet

1 participant