you should validate the value to avoid warnings about unknown constant for which users would not understand the reason (a clear error message telling them their mapping is wrong will probably save some bug reports)