enum support for automatic param validations