Just like the OneOf validator, the ContainsOnly validator can be used to generate a JSON schema that validates a list of items. This PR adds the anyOf property to the schema if it is using the ContainsOnly validator on a list of items
Coverage increased (+0.04%) to 99.187% when pulling 5f6cc1f5c76ec240235b4d241f83fba9a9f6eb0c on Lundalogik:handle-any-of into c032d1a5842de31de6dcf01fe41f6736a13e1f17 on fuhrysteve:master.
Just like the
OneOf
validator, theContainsOnly
validator can be used to generate a JSON schema that validates a list of items. This PR adds theanyOf
property to the schema if it is using theContainsOnly
validator on a list of items