releases.shpreview

Codegen support for per-endpoint security

February 4, 2026StainlessView original ↗

SDKs now correctly respect per-endpoint security definitions in your OpenAPI spec. Previously, if an endpoint only listed one security scheme, the SDK would still send all configured auth headers. Now the SDK only sends the headers required by the scheme(s) configured for that specific endpoint.

This is enabled by default for new projects. To enable for existing projects, update the edition in your config to 2026-01-30 or higher:

edition: "2026-01-30"
Codegen support for per-endpoint security

Fetched May 22, 2026

Codegen support for per-endpoint security — Stainless — releases.sh