CheatSheetSeries icon indicating copy to clipboard operation
CheatSheetSeries copied to clipboard

Update: Bean Validation

Open Pamplemousse opened this issue 2 years ago • 3 comments

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.

Pamplemousse avatar Mar 29 '22 07:03 Pamplemousse

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?

mackowski avatar Mar 29 '22 12:03 mackowski

The bean validation cheatsheet is VERY old, a refresh would be awesome!

jmanico avatar Mar 29 '22 14:03 jmanico

@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.

mackowski avatar Mar 30 '22 14:03 mackowski