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