You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to preserve these leading _'s, but camelize the other fields.
I am thinking about a PR that adds a setting PRESERVE_LEADING_UNDERSCORE, which would allow camelize_re in utils.py to be [a-z0-9]_[a-z0-9] instead of [a-z0-9]?_[a-z0-9] - note the changed '?'.
This would probably involve changing camelize_re from being a constant to being generated by a utils.py function, perhaps get_camelize_re().
Thoughts?
The text was updated successfully, but these errors were encountered:
Hi folks, in my API I have some keys with
_leading_underscores
, for example:I want to preserve these leading
_
's, but camelize the other fields.I am thinking about a PR that adds a setting
PRESERVE_LEADING_UNDERSCORE
, which would allowcamelize_re
inutils.py
to be[a-z0-9]_[a-z0-9]
instead of[a-z0-9]?_[a-z0-9]
- note the changed '?'.This would probably involve changing
camelize_re
from being a constant to being generated by autils.py
function, perhapsget_camelize_re()
.Thoughts?
The text was updated successfully, but these errors were encountered: