Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to prefix 'meta' and 'links' key on deserialization #247

Open
aggrhm opened this issue Jan 30, 2021 · 1 comment
Open

Ability to prefix 'meta' and 'links' key on deserialization #247

aggrhm opened this issue Jan 30, 2021 · 1 comment

Comments

@aggrhm
Copy link

aggrhm commented Jan 30, 2021

First off, thanks for this library, it works great. One issue I've ran into is that I'd like to prefix the meta and links keys when they are added to the deserialized record. This is to prevent any confusion from them being attributes (many of our records also have a metadata attribute, so there ends up being metadata and meta). I'm currently using a transform to rename them to resource_meta and resource_links, but by then, they would have already overwritten the meta and links attributes if they existed. Thanks!

@aggrhm
Copy link
Author

aggrhm commented Jan 30, 2021

Or maybe even just put meta and links inside of a resource object on the deserialize record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant