Added support for enum values.

Added the following validations for enum values.
- is-valid-value
- has-flag