Changelog
Keep track of changes and improvements to Stainless.
Terraform SDK preview in Studio
.webp)
Studio now shows Terraform schemas and snippets in the SDK preview pane.
Semantic custom code conflict resolution
Stainless now automatically resolves more repetitive, low-risk merge conflicts with a syntax-aware merge algorithm.
Define OpenAPI spec request examples
When generating code snippets for documentation providers, Stainless will prioritize the first example in your OpenAPI spec’s request examples
.
Terraform public beta
You can now generate a Terraform Provider for your API using Stainless to allow your customers to automatically provision resources in your API. Follow this guide to get started. To see an example in action, try the Cloudflare v5 Terraform Provider.
For any feedback or feature requests, ping dackerman@.
Diagnostics redesign
.webp)
You can now ignore specific diagnostics in Studio to better prioritize build-critical ones.
Config diffs in Studio
.webp)
You can now see the changes you’re making to the Stainless Config and the OpenAPI spec before you save them.
x-stainless-deprecation-message

When deprecating a schema, SDKs will include a message. In your OpenAPI spec, add x-stainless-deprecation-message: <your message> alongside deprecated: true to use this feature.
JSONL support
SDKs now support endpoints that return JSONL responses. Mark your endpoint’s content type as application/jsonl or application/x-jsonl to use this feature.
Project dashboard

The project dashboard page displays the status of each SDK, release configuration, and build history.
Removing Guava dependency
The Java and Kotlin SDKs now use custom, SDK-specific code instead of Guava, reducing generated JAR size by 10% (3 MB).
Java/Kotlin automatic resource closing
The Java and Kotlin SDKs now automatically prevent accidental memory leaks. If a user forgets to close an HTTP response or client, then it will be automatically closed when it becomes phantom reachable.
X-Stainless-Retry-Count header
SDKs now include an X-Stainless-Retry-Count
header in every request to indicate the current retry attempt. This provides better visibility into why requests are being sent to your API.
Java/Kotlin Debug logging
The Java and Kotlin SDKs now support logging requests when setting a <OrgName>_LOG environment variable to info or debug depending on the desired verbosity.
This is also available in Python and TypeScript.