validate and normalize default and enum values