Allows hashes as enum elements for validation