kgiszczak / shale

Shale is a Ruby object mapper and serializer for JSON, YAML, TOML, CSV and XML. It allows you to parse JSON, YAML, TOML, CSV and XML data and convert it into Ruby data structures, as well as serialize data structures into JSON, YAML, TOML, CSV or XML.
https://shalerb.org/
MIT License
618 stars 19 forks source link

Allow to partial render #5

Closed Tab10id closed 1 year ago

Tab10id commented 1 year ago

Sometimes we need to render only partion of available attributes. For now we use representable for such things: https://trailblazer.to/2.1/docs/representable.html#include-and-exclude https://trailblazer.to/2.1/docs/representable.html#representable-function-api-skip-render Do you have plans to implement this or maybe there is some hacky solution?

kgiszczak commented 1 year ago

Thanks for suggestions, there shouldn't be a problem implementing it. I should have something after weekend.

kgiszczak commented 1 year ago

Hey, I just released a new version that adds partial renders. Release notes are here: https://www.shalerb.org/releases.html#v070

I'll close the issue, if you need anything create a new one, thanks.

Tab10id commented 1 year ago

Thanks for release. Nice work!