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

Bean validation spec #1145

Merged
merged 4 commits into from
Jun 6, 2022
Merged

Bean validation spec #1145

merged 4 commits into from
Jun 6, 2022

Conversation

Azquelt
Copy link
Contributor

@Azquelt Azquelt commented May 24, 2022

Updated the bean validation annotation scanning to match the spec update in eclipse/microprofile-open-api#531

The changes needed were:

  • respect the new config property to disable reading bean validation annotation scanning
  • process constraints which apply to the default group (rather than those which only apply to the default group)
  • use an exclusive range for @Positive and @Negative

@Azquelt
Copy link
Contributor Author

Azquelt commented May 24, 2022

There were a few different options for making the scanning optional, so do check you're happy with that part.

Copy link
Member

@MikeEdgar MikeEdgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Just a few comments.

@MikeEdgar MikeEdgar added this to the 3.1.0 milestone May 28, 2022
@Azquelt
Copy link
Contributor Author

Azquelt commented May 30, 2022

I've made updates in response to the review comments.

Azquelt added 4 commits June 6, 2022 11:55
Respect the new config property added to the spec for bean validation
annotation scanning.
Rather than constraints which apply only to the default group, to match
proposed spec.
Use an exclusive range for Positive and Negative constraints
Use consistent patterns for code which is run only if we have a bean
validation scanner.
@MikeEdgar MikeEdgar force-pushed the bean-validation-spec branch from a5365ea to fae1c28 Compare June 6, 2022 15:57
@MikeEdgar MikeEdgar merged commit 8892dfc into smallrye:main Jun 6, 2022
@Azquelt Azquelt deleted the bean-validation-spec branch June 7, 2022 12:02
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.

2 participants