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

Option to disable automatic snake_case transformation #60

Open
markalexander opened this issue Jul 19, 2020 · 0 comments
Open

Option to disable automatic snake_case transformation #60

markalexander opened this issue Jul 19, 2020 · 0 comments

Comments

@markalexander
Copy link

markalexander commented Jul 19, 2020

I know that this an attempt to be helpful but it's usually not, in my experience. The SDK uses key_name and the webhook uses keyName, so how are we supposed to abstract the two without a horrific mess of:

  • storing two key names for each field, or
  • on-the-fly transformation back to camel case on the already-transformed key names?

The other Contentful SDKs seem to have added an option for disabling this. I can't seem to find it in the Python one, so is it hidden somewhere? I guess raw_mode might work? But that's presumably going to disable all the other useful processing too.

Personally, I'm storing objects in a relational DB + data warehouse too so I've got at least 3 different keys to deal with. :(

Please add this if not already available. Thanks!

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