lib/schemacop/v3/one_of_node.rb in schemacop-3.0.19 vs lib/schemacop/v3/one_of_node.rb in schemacop-3.0.20

- old
+ new

@@ -34,10 +34,13 @@ matches = matches(super_data) if matches.size == 1 matches.first._validate(super_data, result: result) else - result.error "Matches #{matches.size} definitions but should match exactly 1." + result.error <<~PLAIN.strip + Matches #{matches.size} schemas but should match exactly 1: + #{schema_messages(data).join("\n")} + PLAIN end end def validate_self if @items.size < 2