class Dry::Schema::Message::Or::MultiPath

def initialize(...)

Other tags:
    Api: - private
def initialize(...)
  super
  flat_left = left.flatten
  flat_right = right.flatten
  @root = [*flat_left, *flat_right].map(&:_path).reduce(:&)
  @left = flat_left.map { _1.to_or(root) }
  @right = flat_right.map { _1.to_or(root) }
end