4.55.0
(feat): Add support for server URL templating with OpenAPI server variables. This enables
dynamic base URL construction at runtime based on user-provided configuration.
OpenAPI definition example:
Generated constructor parameters: Server variables are exposed as optional constructor parameters with their default values:
region: typing.Optional[str]- defaults to"us-east-1"server_url_environment: typing.Optional[str]- defaults to"prod"(prefixed to avoid shadowing)
Runtime URL interpolation: When server variables are provided, the SDK performs runtime URL template interpolation:
Multiple base URL environments:
For APIs with multiple base URLs (e.g., separate base and auth URLs), each URL
template is interpolated independently with the same server variables.
x-fern-default-url extension:
When present in the OpenAPI spec, this extension specifies which server URL should
be used as the default environment, overriding the first server in the list.
4.54.4
(fix): The use_provided_defaults config option no longer applies defaults to
inlined request body properties.