Skip to content

Add optional max length attribute to @NotBlank #104

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

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

rbygrave
Copy link
Contributor

@rbygrave rbygrave commented Aug 2, 2023

By default this will produce 2 different error messages, one for "not blank" and another for "max length".

An alternative of a {avaje.NotBlank.max.message} was tried which combined the 2 messages into a single error message but this felt less satisfactory than the 2 messages which are more clear as to the reason of the violation error.

By default this will produce 2 different error messages, one for "not blank" and another for "max length".

An alternative of a {avaje.NotBlank.max.message} was tried which combined the 2 messages into a single error message but this felt less satisfactory than the 2 messages which are more clear as to the reason of the violation error.
@sonatype-lift
Copy link

sonatype-lift bot commented Aug 2, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@rbygrave rbygrave linked an issue Aug 2, 2023 that may be closed by this pull request
@rbygrave
Copy link
Contributor Author

rbygrave commented Aug 2, 2023

I'll merge this in, I think its good enough.

@rbygrave rbygrave merged commit 75d2c81 into main Aug 2, 2023
@rbygrave rbygrave deleted the feature/NotBlank-with-max branch August 2, 2023 20:42
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.

@NotBlank(max=...) - include Max Length validation with @NotBlank
1 participant