case details['path']
              when String
                # ok
              when nil
                errors.add(:base,