Skip to content

Commit 168e858

Browse files
authored
(sdks) Document smart-casing option (#1168)
1 parent 4680bec commit 168e858

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fern/products/sdks/reference/generators-yml-reference.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ groups:
390390
generators:
391391
- name: fernapi/fern-typescript-node-sdk
392392
version: 0.9.0
393+
smart-casing: true
393394
```
394395

395396
<ParamField path="name" type="string" required={true}>
@@ -400,6 +401,13 @@ The Fern generator package name (e.g., fernapi/fern-typescript-node-sdk)
400401
Specific version of the generator to use
401402
</ParamField>
402403

404+
<ParamField path="smart-casing" type="boolean" default="false">
405+
Enables intelligent case conversion that preserves numbers and common programming patterns:
406+
- Numbers stay intact (e.g., `v2` instead of `v_2`, `getUsersV2` instead of `getUsersV_2`)
407+
- Initialisms are preserved (e.g., `CustomerID` instead of `CustomerId`)
408+
- Acronyms remain correct (e.g., `HTTPSConnection` stays `HTTPSConnection`)
409+
</ParamField>
410+
403411
#### `config`
404412

405413
Language-specific configuration options.

0 commit comments

Comments
 (0)