To close out 2025, we focused on improving SDK quality and configuration flexibility across our TypeScript, C# and Python SDKs.
This December release introduces configuration-based client initialisation for TypeScript SDKs, incorporates modern language conventions into C# SDKs and adds Ruff support to Python SDKs.
Python SDKs now fully comply with Ruff linting rules and PEP 8/257 guidelines.
Regenerate your SDK to get cleaner, more consistent code that fits naturally into modern Python workflows. These improvements ensure your SDK passes automated linting checks in strict CI pipelines immediately after generation.
Key improvements:
ruff.toml configuration file for automated linting in your build process.format() to f-strings, removed obsolete encoding declarationsYou can now run Ruff check on SDKs in your CI/CD pipelines:
π See the Python SDK quality improvements documentation for complete details.
Say goodbye to compiler warnings, say hello to clean code.
We overhauled the C# code generation engine to adhere more strictly to modern C# conventions. This update eliminates build-time warnings, removes redundant import directives, standardises naming conventions for variables and ensures your C# SDKs look more "hand-written"
Key improvements:
using directives - Eliminated unnecessary imports to reduce noise and compiler warnings_requestBuilder to requestBuilder for readabilitynew keywords where neededSecurely manage credentials and switch environments without modifying your code.
We've introduced a new way to initialise clients using JSON files or environment variables. With two new static methodsβfromJsonConfig() and fromEnvironment(). This means that you can separate configuration from code, making your applications more secure and adaptable.
How this improves your developer workflows:
dotenv packageπ See the Client Initialisation documentation for complete examples and configuration options.
Clearer Error Messages for the Docs as Code API
We updated the status endpoint for the Docs as Code Async API to distinguish between subscription errors (missing features requiring upgrades) and validation errors (issues with request parameters or build files). A new errors property provides specific details for the failure, helping you troubleshoot build issues faster.
Additionally, the async portal generation endpoint no longer returns HTTP 403 for subscription issues, ensuring consistent API behaviour.
π See the Docs as Code error messaging documentation for response examples.
TypeScript SDK Module Exports Update
To support better ESM/CommonJS resolution, we updated the exports field in package.json and now use .js extensions for internal imports. This change applies to all SDKs generated after January 1, 2026.
Impact: TypeScript SDK users must regenerate their SDKs to adopt these changes.
π See the TypeScript exports documentation for details.
Your feedback makes our product better.
Reach our support team at support@apimatic.io