releases.shpreview
Stainless/Stainless/Codegen support for per-endpoint security

Codegen support for per-endpoint security

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"

Fetched May 22, 2026