plangrid / flask-rebar

Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.
MIT License
233 stars 38 forks source link

Try to fix dumping with data_key #273

Closed jonls closed 2 years ago

jonls commented 2 years ago

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.

gtmanfred commented 2 years ago

I will work on getting a patch release out with this tomorrow, thanks @jonls