Fixing issues when using differing joi version for schema