Skip to content

Add support for javax.validation.constraints.NotBlank #1757

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

Closed
odrotbohm opened this issue Jan 28, 2022 · 0 comments
Closed

Add support for javax.validation.constraints.NotBlank #1757

odrotbohm opened this issue Jan 28, 2022 · 0 comments
Assignees
Labels
in: core Core parts of the project type: new feature
Milestone

Comments

@odrotbohm
Copy link
Member

Forward port of #1753.

@odrotbohm odrotbohm added type: new feature in: core Core parts of the project labels Jan 28, 2022
@odrotbohm odrotbohm self-assigned this Jan 28, 2022
@odrotbohm odrotbohm added this to the 2.0 M2 milestone Jan 28, 2022
odrotbohm pushed a commit that referenced this issue Jan 28, 2022
The presence of @nonblank on a representation model's property now causes it to be considered required. It will also cause a default pattern exposed that allows clients to validate input values.

Fixes #1757.
odrotbohm added a commit that referenced this issue Jan 28, 2022
Slightly more compact default regex pattern. Untangle defaulting condition in PropertyMetdata.getPattern(). Extract test cases into dedicated methods. Couple of Javadoc fixes. Java-9-based polishing by using Optional.or(…) in JSR 303 PropertyMetadata implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Core parts of the project type: new feature
Projects
None yet
Development

No branches or pull requests

1 participant