We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is related to the same as : #222 But with another context
The issue will be raised if you have a Optional<Long> and you wish to have a value defined.
Optional<Long>
@NotNull @With Optional<Long> seems to validate that the field is not a null value.
@NotNull @With Optional<Long>
But if you set this up this way: @With Optional<@NotNull Long> fieldName, you will have the following error at compile time
@With Optional<@NotNull Long> fieldName
annotation @javax.validation.constraints.NotNull not applicable in this type context
Maybe what should be added is add support for optional on the NotEmpty annotation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is related to the same as : #222
But with another context
The issue will be raised if you have a
Optional<Long>
and you wish to have a value defined.@NotNull @With Optional<Long>
seems to validate that the field is not a null value.But if you set this up this way:
@With Optional<@NotNull Long> fieldName
, you will have the following error at compile timeannotation @javax.validation.constraints.NotNull not applicable in this type context
Maybe what should be added is add support for optional on the NotEmpty annotation
The text was updated successfully, but these errors were encountered: