fuhrysteve / marshmallow-jsonschema

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
MIT License
209 stars 72 forks source link

feat(validation): add anyOf validator for ContainsOnly #96

Open jgroth opened 5 years ago

jgroth commented 5 years ago

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

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.04%) to 99.187% when pulling 5f6cc1f5c76ec240235b4d241f83fba9a9f6eb0c on Lundalogik:handle-any-of into c032d1a5842de31de6dcf01fe41f6736a13e1f17 on fuhrysteve:master.

jgroth commented 3 years ago

Ping @fuhrysteve I have rebased this on master, it would be great to get this merged it's been a PR for a while now