I've experimented a bit with the BV API and I'm quite happy with it but I find the way to pass back metadata along with the error a bit limiting, if payloads is an array of static classes that can lead to an explosion of classes, it would have been nice if simple static things like list of enums or strings or numbers would have been allowed as well. Ex, I'd like to assign a specific error code to an validation exception which doesn't have anything to do with the error message but will be used programmatically? Ex. @NotNull(message="my_custom_not_null_key", payload={"Code._12345"})
|