5.12.1
(fix): Apply canonical “all user-specified examples, else first autogenerated” selection
in the Python v2 SDK snippet output path. Aligns the v2 generator’s snippet.json /
README example selection with the existing v1 behavior so dynamic-IR-driven
snippets are deterministic across runs.
5.12.0
(feat): Add a client-level max_retries: Optional[int] constructor parameter to generated SDK clients.
Consumers can now set a default retry count once at client construction (e.g. Client(max_retries=5))
instead of passing max_retries via request_options on every call. Per-request max_retries
in request_options continues to take precedence over the client-level default.
5.11.0
(feat): New flatten_union_request_bodies config flag (default false). When
enabled, endpoints whose referenced request body is a discriminated
oneOf/union expose all variants’ fields as flat kwargs (Stripe-style),
rather than a single request: Union[...] parameter. The discriminator
becomes a Union[Literal[...], ...] of every variant value; per-variant
fields with the same wire name are merged (with conflicting types
unioned). Existing customers see no change unless they opt in.