hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
127 stars 22 forks source link

feat: allow casting fields from strings to dicts #47

Closed gcandal closed 3 years ago

gcandal commented 3 years ago

Useful when dealing with non-JSON endpoints, such as file upload.

Based on https://github.com/hivesolutions/appier/blob/1470c427a760fb698e423bbbfdad53a29578279e/src/appier/model.py#L72

gcandal commented 3 years ago

@joamag

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 63.992% when pulling aa6ee4bdba08100df4c2427f5a889ca8b1757802 on gcandal:gc/field-dict-cast into 0c96f3e20b863e8b7f9141099de6a2625c76e1b1 on hivesolutions:master.

joamag commented 3 years ago

This seems to make sense but requires back-port to flask quorum. Taking care of that on my side.

joamag commented 3 years ago

@gcandal released in version 1.23.0