Skip to content

Commit a8f1334

Browse files
Update changelogs from fern repo (#5288)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent 54521dc commit a8f1334

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## 5.9.1
2+
**`(fix):`** Respect the customer's `smart-casing` flag from `generators.yml` when computing
3+
Python identifiers from compressed v66 IR strings. Previously the v1 Python
4+
generator's `_smart_snake` and v2's `PYTHON_CASE_CONVERTER` were both hardcoded
5+
with `smartCasing: true`, causing names produced by the generator to diverge
6+
from the IR's pre-computed `snake_case` values when the customer set
7+
`smart-casing: false`. This manifested as wire-test method calls and Pydantic
8+
field aliases that did not exist on the generated client (e.g. test calling
9+
`set_fcmv_1_provider()` while the client method was named `set_fcmv1provider`).
10+
11+
`_smart_snake` and the v2 `caseConverter` now read `casingsConfig.smartCasing`
12+
from the IR and switch between smart-casing semantics (default) and plain
13+
lodash semantics (`smart-casing: false`). No effect for customers who use
14+
the default; fixes generation for customers like auth0 that opt out.
15+
16+

0 commit comments

Comments
 (0)