fuhrysteve / marshmallow-jsonschema

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

fix(validation): handle_one_of uses oneOf instead of enum #95

Open jgroth opened 5 years ago

jgroth commented 5 years ago

enumNames is not part of the JSON Schema spec, it was part of a draft but was never accepted. It is possible to get the same behaviour using a oneOf property with titles

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.02%) to 99.174% when pulling 0b4d2502d88d5fbe3fc2e91b1950b4f72d136bc7 on Lundalogik:handle-one-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