beanvalidation/beanvalidation.org — comment on commit bc37cfec514b79f7695ccb35f9990115c5fdeab8
File: proposals/BVAL-241.md line 755
By emmanuelbernard:

My concern with recommending vs imposing is that BV won't be responsible for the parsing / processing of `@ValidateGroups` and the interceptor will have to give the list of groups manually. (see method `validateParameter` and co). Likewise, if we add more info to @ValidateGroups, we will need to change the `validateParameter` and co signature

Alternatively, we can:

- add a context object to these methods
- let them accept a `ValidateGroups` annotation instance
- or let BV's engine find and read `@ValidateGroups` annotations entirely but you don't seem fan of that approach