You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (is_validate_complete(instance, ptr, e, esub, count))
448
478
return;
449
479
}
450
480
451
-
// could accumulate esub details for anyOf and oneOf, but not clear how to select which subschema failure to report
452
-
// or how to report multiple such failures
453
-
if (count == 0)
454
-
e.error(ptr, instance, "no subschema has succeeded, but one of them is required to validate");
481
+
if (count == 0) {
482
+
e.error(ptr, instance, "no subschema has succeeded, but one of them is required to validate. Type: " + key + ", number of failed subschemas: " + std::to_string(subschemata_.size()));
e.error(esub.ptr_, esub.instance_, "at least one subschema has failed, but all of them are required to validate - " + esub.message_);
517
+
e.error(esub.error_entry_list_.front().ptr_, esub.error_entry_list_.front().instance_, "at least one subschema has failed, but all of them are required to validate - " + esub.error_entry_list_.front().message_);
0 commit comments