Validation

I’m trying to use the validation features. I am reading:
http://wiki.coldbox.org/wiki/Validation.cfm

On this page the examples shows that the following code should be in the config:

validation = {
manager = “class path”,
sharedConstraints = {
sharedName = { constraints }
}
}

I add this in the config and it’s telling me that I have an invalid CFML construct. Does anyone have a valid example?

I changed the config to:

validation = {
manager = “coldbox.system.validation.ValidationManager”,
sharedConstraints = {
sharedUser = {
fName = {required=true},
lname = {required=true}
}
}
};

now I’m getting

You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.

I was able to get it working.