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

def to_h

Other tags:
    Api: - public
def to_h
  @to_h ||= Path[[*root, :or]].to_h(
    [left.map(&:to_h).reduce(:merge), right.map(&:to_h).reduce(:merge)]
  )
end