Fix a serialization bug that randomly skips fields if "x_of" is encountered #1042
The purpose of this PR is to make sure all of the fields are correctly serialized when there are
The tricky part of this bug is that it is not stably repeatable. This is because the serialization iterates through the json keys in random order, and the bug shows up only when the fields that contain
Along with this bug fix, the PR also enabled correct serialization under circumstances where
Two new unit test cases are written for these scenarios, and one of them uses
(This is a repost of PR #1040. Please let me know if there are other improvements I need to make.)
* 'master' of https://github.com/pyeve/eve: (374 commits) Changelog for pyeve#1070 use OrderedDict from backport_collections Minor changelog fixes for pyeve#1048 Support Decimal type MongoDB Changelog: add reference to proper PR Changelog update for pyeve#1042 Fix a serialization bug that randomly skips fields if "x_of" is encountered Amedeo Bussi Changelog for pyeve#1030 pep/flake, and remove duplicate test documentation improvements and fixes Bulk delete MONGO_DBNAME can be now used along with MONGO_URI Vasilis Lolis typo Amedeo91 Changelog for pyeve#1031 Bulk Embedded document resolution Delete unnecessary code Fix insidious bug in tests.TestPost class ...