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

Bug: Relationship keys not transformed with dasherize_shallow config option #314

Closed
protestContest opened this issue Feb 22, 2024 · 0 comments · Fixed by #315
Closed

Bug: Relationship keys not transformed with dasherize_shallow config option #314

protestContest opened this issue Feb 22, 2024 · 0 comments · Fixed by #315

Comments

@protestContest
Copy link
Contributor

If the :field_transformation config option is :dasherize or :camelize, the document's attributes and relationship keys are transformed. Since :dasherize_shallow and :camelize_shallow was introduced, only the keys of the document's attributes are transformed, but not the keys of relationships.

In my view, relationship keys should also be transformed when the :dasherize_shallow or :camelize_shallow options are used.

Related to #310. I'll create a PR for this small fix.

mattpolzin added a commit that referenced this issue Feb 24, 2024
…#314) (#315)

* Transform relationship keys with shallow field transformation options

* bump patch version

* Add line item for other bug fix

---------

Co-authored-by: Mathew Polzin <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant