mikeywaites / kim

Kim: A JSON Serialization and Marshaling framework
http://kim.readthedocs.org/en/latest/
Other
317 stars 17 forks source link

Top level validate raises MappingErrors erases field Validation errors #29

Closed krak3n closed 10 years ago

krak3n commented 10 years ago

When raising MappingErrors in a top level validate method on a serializer causes any previous errors on other fields lower down the chain to be lost.

Line 279 of mapping.py is the culprit. A merging errors with the errors raised from the MappingError could potentially be quite straight forward.

Happy to contribute if you approve.

Chris