Netflix / fast_jsonapi

No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
Apache License 2.0
5.07k stars 425 forks source link

set_key_transform at runtime? #444

Open benlieb opened 4 years ago

benlieb commented 4 years ago

In my app sometimes I want camel case (for JS data) and sometimes I want underscore data.

Is it possible to have one serializer class that can be configured at runtime to have different key transforms?

kapilnarula commented 4 years ago

It seems Netflix has abandoned this project. The community created a new fork to continue supporting this project. Please refer

https://github.com/fast-jsonapi/fast_jsonapi

On Tue, 15 Oct, 2019, 2:35 AM Benjamin Lieb, notifications@github.com wrote:

In my app sometimes I want camel case (for JS data) and sometimes I want underscore data.

Is it possible to have one serializer class that can be configured at runtime to have different key transforms?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Netflix/fast_jsonapi/issues/444?email_source=notifications&email_token=ACEAHZJXM6Q6FGZVK6BVJTTQOTNIZA5CNFSM4JAT76Z2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRWI5TA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEAHZOXOPAVFXEVWJUMWK3QOTNIZANCNFSM4JAT76ZQ .