def target_schema(link)
      if link.target_schema
        link.target_schema
      elsif legacy_hyper_schema_rel?(link)
        link.parent
      end
    end
def target_schema(link)
      if link.target_schema
        link.target_schema
      elsif legacy_hyper_schema_rel?(link)
        link.parent
      end
    end
Gets the target schema of a link. This is normally just the standard
 response schema, but we allow some legacy behavior for hyper-schema links
 tagged with rel=instances to instead use the schema of their parent
 resource.