inaka / Dayron

A repository `similar` to Ecto.Repo that maps to an underlying http client, sending requests to an external rest api instead of a database
http://inaka.net/blog/2016/05/24/introducing-dayron/
Apache License 2.0
159 stars 20 forks source link

Allow overriding __from_json_list__/2 in Model #60

Closed jcypret closed 7 years ago

jcypret commented 7 years ago

This allows overriding the root-level key in the json response for scenarios where the array of records is nested inside of an attribute, such as data.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 86af99e796f72ce068610a9a7f721d6593a902e0 on jcypret:jc-override-from-json-list into 6d06d94f117dd1abe1c952cd2f3d00c8f9e531de on inaka:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 86af99e796f72ce068610a9a7f721d6593a902e0 on jcypret:jc-override-from-json-list into 6d06d94f117dd1abe1c952cd2f3d00c8f9e531de on inaka:master.

flaviogranero commented 7 years ago

thank you @jcypret! merging this, I'll create a new release soon.