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

Support auto-dekebabization for attributes? #1024

Open
bjornharrtell opened this issue Sep 15, 2024 · 0 comments
Open

Support auto-dekebabization for attributes? #1024

bjornharrtell opened this issue Sep 15, 2024 · 0 comments
Assignees

Comments

@bjornharrtell
Copy link

I have an older JSON-API backend which for compatiblity reasons cannot change that has everything in kebab-case, including attribute names. This was the norm pre json-api/json-api#1255. Keeping those around in JavaScript or TypeScript access is no fun and I think the most desireable usage pattern is that they are converted to camelCase and vice-versa on (de)serialization.

Would it be acceptable to add an option to do this on deattribute, serialiseAttr and bubble up that option? This would be in line with the current option for resource type names.

I would be open to work on this, however I'm hesisant because of TypeScript rewrite?

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

2 participants