lib/schemacop/v3/any_of_node.rb in schemacop-3.0.19 vs lib/schemacop/v3/any_of_node.rb in schemacop-3.0.20
- old
+ new
@@ -12,10 +12,13 @@
match = match(super_data)
if match
match._validate(super_data, result: result)
else
- result.error 'Does not match any anyOf condition.'
+ result.error <<~PLAIN.strip
+ Matches 0 schemas but should match at least 1:
+ #{schema_messages(super_data).join("\n")}
+ PLAIN
end
end
def validate_self
if @items.empty?