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

Take into account repeated constraint annotations #5652

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

irenakezic
Copy link
Contributor

Take into account repeated constraint annotations

Fixes #5549

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

I added one small comment about the test.

Otherwise, it looks very good, thanks!


@MyConstraint("value1")
@MyConstraint("value2")
public String testValue2;
Copy link
Member

Choose a reason for hiding this comment

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

Can you separate the tests in 2 bean classes?

Because, if at least one works, then all the constraints will be detected so we really need to test the built-in constraints and the custom constraints in 2 separate beans.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok sure

@gsmet
Copy link
Member

gsmet commented Nov 21, 2019

Looks good, thanks!

Congrats for your first contribution!

@gsmet gsmet merged commit 94c002c into quarkusio:master Nov 21, 2019
@gsmet gsmet added this to the 1.1.0 milestone Nov 21, 2019
@gsmet gsmet removed the backport? label Nov 22, 2019
@gsmet gsmet modified the milestones: 1.1.0, 1.0.0.Final Nov 22, 2019
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.

Repeated constraints are not supported
2 participants