Added validation to DefinitionType enum.