Skip to content

Resolve CamelCase prefixes in dotted Box lookups - #324

Open
Jerry-val wants to merge 3 commits into
cdgriffith:developfrom
Jerry-val:fix/camel-case-dotted-lookup
Open

Resolve CamelCase prefixes in dotted Box lookups#324
Jerry-val wants to merge 3 commits into
cdgriffith:developfrom
Jerry-val:fix/camel-case-dotted-lookup

Conversation

@Jerry-val

Copy link
Copy Markdown

When camel_killer_box and box_dots are enabled, an existing key such as someKey works alone but fails in someKey[0].innerKey. With default_box=True, the same read can create an unintended branch.

Resolve CamelCase aliases one path component at a time before traversal, preserving exact-key precedence. Regression tests cover nested dictionaries and lists, option combinations, unchanged data after reads, and exact literal keys.

Validation on Python 3.13: all 166 tests pass with Python source, compiled extensions, and the installed wheel. Black, mypy, distribution build, and Twine checks pass. The new regression tests fail before the fix.

Fixes #300.

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 this pull request may close these issues.

1 participant