class ViewModel::DeserializationError::SchemaVersionMismatch

viewmodel.
A view included an unexpected schema version for the corresponding

def detail

def detail
  "Mismatched schema version for type #{viewmodel_class.view_name}, "\
  "expected #{viewmodel_class.schema_version}, received #{schema_version}."
end

def initialize(viewmodel_class, schema_version, nodes)

def initialize(viewmodel_class, schema_version, nodes)
  @viewmodel_class = viewmodel_class
  @schema_version  = schema_version
  super(nodes)
end

def meta

def meta
  super.merge(expected: viewmodel_class.schema_version,
              received: schema_version)
end