You should just parse and return the result, IMO. Then, at some later point, enforce it.