Hi,
thanks for the great lib!
Using it I found some obstacles - what we need is to derive some additional info from the object containing the field.
I'm using ViolatedArguments for this, but there is no way how to create this without resorting to hacks.
The whole idea behind is to be able to locate the containing object based on identifier, thus avoiding issues with collections e.g. set - where you cant simply use the index approach.
As the ConstraintViolation is build in the Validator there is no way how to extend this with extened ConstraitViolation. And to be able to add it into the args its very hacky as the parent object is not reachable when the args are being supplied.
It would be great to allow for some freedom in how these objects are created.
Thank you!
Im using version 0.16.0.
Viliam
Hi,
thanks for the great lib!
Using it I found some obstacles - what we need is to derive some additional info from the object containing the field.
I'm using ViolatedArguments for this, but there is no way how to create this without resorting to hacks.
The whole idea behind is to be able to locate the containing object based on identifier, thus avoiding issues with collections e.g. set - where you cant simply use the index approach.
As the ConstraintViolation is build in the Validator there is no way how to extend this with extened ConstraitViolation. And to be able to add it into the args its very hacky as the parent object is not reachable when the args are being supplied.
It would be great to allow for some freedom in how these objects are created.
Thank you!
Im using version 0.16.0.
Viliam