validation before transformation, enum support