Baggz/Amanda — Issue #18: Custom error messages
Author: leondealmeida
Created: 2012-01-20 12:09:50+00:00
State: open

It would be useful to be able to specify custom error messages directly on the Amanda schema definition. I'd suggest accepting an object in the lines of

message: {
regex: { text: "Your custom message here" }
type: { text: "Your custom message 2 here" }
}

which would be parsed upon a failed validation. The property names of the message object would be the name of the Amanda validator that should consume them.