class Dry::Schema::Message

def to_or(root)

Other tags:
    Api: - private
def to_or(root)
  clone = dup
  clone.instance_variable_set("@path", path - root.to_a)
  clone.instance_variable_set("@_path", nil)
  clone
end