Customize parameter names
The x-fern-parameter-name extension allows you to customize the variable names of parameters in your generated SDKs.
Headers
In the example below, the header X-API-Version is renamed to version in the
generated SDK. The rename makes the SDK more human readable.
Query parameters
In the example below, the query parameter q is renamed to search_terms in the
generated SDK. The rename makes the parameter more approachable for end users.
Path parameters
In the example below, the path parameter userId is renamed to id in the
generated SDK. The rename makes the SDK less verbose.
Renaming a path parameter is also how you resolve a naming collision. A path parameter can’t share a name with another request property (a body property, query parameter, or header), including after camelCase normalization. fern check reports these collisions; set x-fern-parameter-name on the path parameter to rename it and resolve the collision.