Class validators

The double quotes around `{cmp}` may be misleading for some types, e.g. numbers. I think they can be removed.