CheatSheetSeries
CheatSheetSeries copied to clipboard
Update: Bean Validation
What is missing or needs to be updated?
The "Bean Validation" Cheat Sheet mentions @SafeHtml
as an additional constraint provided by the Hibernate validator: see https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Bean_Validation_Cheat_Sheet.md?plain=1#L451 .
However, this annotation is deprecated: https://in.relation.to/2019/11/20/hibernate-validator-610-6018-released/ .
How should this be resolved?
@SafeHtml
should not be in the list of additional constraints.
Ideally, a note should be added preventing people to use it if they find it in the documentation.
I agree with you @Pamplemousse! Thank you for this issue. @jmanico and @Pamplemousse in general I think that this cheatsheet needs some refreshment; do you agree?
The bean validation cheatsheet is VERY old, a refresh would be awesome!
@Pamplemousse do you want to make a PR for this issue? If you would like to refresh the rest of the content, it would be awesome. We will help you with this process and do the review.