The test case demonstrates the issue: When using data_key in the schema, filter_dump_only() fails with KeyError because it assumes that the keys in the output are the same as the fields in the schema.
I've tried to fix this issue by adding a dict that translates from the output keys back to the schema fields.
The test case demonstrates the issue: When using
data_key
in the schema,filter_dump_only()
fails withKeyError
because it assumes that the keys in the output are the same as the fields in the schema.I've tried to fix this issue by adding a dict that translates from the output keys back to the schema fields.