     return AnySequence(EmptyCollection())
   }
 
-  if !instance.contains(where: { validator.descend(instance: $0, subschema: contains).validationResult().valid }) {
+  if !instance.contains(where: { validator.descend(instance: $0, subschema: contains).isValid }) {
     return AnySequence(["\(instance) does not match contains"])
   }
 


    return .invalid(errors)
  }
}

    return AnySequence(EmptyCollection())
  }

  if !anyOf.contains(where: { validator.descend(instance: instance, subschema: $0).isValid }) {
    return AnySequence(["\(instance) does not meet anyOf validation rules."])
  }

