wopian / wopian/kitsu

Support auto-dekebabization for attributes?

Open
#1,024 1 comment 0 reactions 1 assignee View on GitHub

@wopian is already working on this.

Since Sep 15, 2024.

enhancement help wanted kitsu-core
Dominant language
JavaScript
Stars
291
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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 https://github.com/json-api/json-api/issues/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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.