jakartaee / validation-spec

Jakarta Validation spec document
http://beanvalidation.org
Apache License 2.0
20 stars 22 forks source link

Make support for record validation explicit #267

Closed gunnarmorling closed 5 months ago

gunnarmorling commented 1 year ago

Probably doesn't require much, as validation pretty much "Just works" for records, too. But it would still be nice to make it explicit in the spec, have some examples, state that the constructor components should be annotated, etc.

Another question is how to trigger validation of records, as it essentially requires hooking into constructor calls, e.g. via byte code weaving. I've explored this a while ago here.

gunnarmorling commented 1 year ago

/CC @gsmet, @ivargrimstad