class Dry::Schema::Message

def <=>(other)

Other tags:
    Api: - private
def <=>(other)
  l_path = Path[path]
  r_path = Path[other.path]
  unless l_path.same_root?(r_path)
    raise ArgumentError, 'Cannot compare messages from different root paths'
  end
  l_path <=> r_path
end