I have simple validation configured in VT to ensure the input data matches what I expect. However, I'm to the point now where I'm going to use a 3rd party to ensure that the address actually exists. This 3rd party does fuzzy matching (12th St versus 12th Street or St. Louis versus Saint Louis) and potentially kicks back some suggestions on how to correct it.
I understand I can use a custom validation type to ultimately call this 3rd party and I can return a struct from my custom validation method with isSuccess, failureMessage and potentially an array of address suggestions.
My question is.. I'm not sure how to write the XML for this. This validation does not actually validate a field, but rather all of the data collectively. I've also considered doing the validation separately and simply adding the result to the validation result but I'm not quite sure if either of these two methods are better than the next.
Is there a best practice on how to handle this sort of validation?