Changelog: Terraform v2 & CLI Upgrade
New features to the Speakeasy Platform - February, 2024
Following on from our TypeScript work in January, weβve kept our focus on upleveling our developer experience of both our platform and our generation targets. This month our CLI got an overhaul, and Terraform got a package of upgrades. The result is an experience that is more intuitive, more powerful, and more flexible for both our users and their end users.
Letβs jump into it π
Terraform v2
Terraform is the go to tool for businesses implementing a strict disaster recovery plan. For any SaaS businesses trying to sell API usage to these enterprises, that makes offering a Terraform Provider a must-have.
Our Terraform generation has made maintaining a provider trivially easy and unlocked our customers ability to win large enterprise contracts. Weβve been working hard to extend that opportunity to every API. Thatβs why weβre excited to announce the release of Terraform v2 with a range of new features to support increasingly complex APIs:
- Collapse multiple API endpoints into a single Terraform Entity.
- Add Custom Plan Validators to your Provider
- Automatically enforced Runtime Validations
- Support for
default
andconst
attributes - Handling of Batch Endpoints
For the details, please read the full release notes here.
Upgraded CLI - Enhanced Quickstart
We received a lot of feedback from our users about the CLI being their preferred interface for generating SDKs. Weβve therefore invested in creating what we think is one of the best CLI experiences available anywhere today. The principles that guided our rebuild were:
- β¨ No magic incantations required
- π Flattened command hierarchy
- π©βπ§ Design for humans
Tangibly it means you donβt need any context or docs to use the CLI. Our interactive prompts will make setting up your SDKs a breeze.
If youβre interested in learning how we built the new CLI, the code is open source (opens in a new tab) and a detailed blog post is available here.
π’ Improvements and Bug Fixes π
Most recent version: Speakeasy v1.200.1 (opens in a new tab)
π’ Generation of SSE usage examples in Readme.md
π Correct construction of input statements when readOnly: true
π’ use defaults for usage snippet rendering if example not available
π’ support disabling security for a single operation
π donβt regenerate if no version bump detected
π handle nullable enums correctly\
Typescript
π’ Support for Retry-After (opens in a new tab) headers
π’ Support for URL based cursor based pagination
π’ Allow string enums to be used in SSE data
π’ Make const fields optional on the client
π’ Improve validation errors thrown from SDK methods
π’ Introduce new response format with http metadata
π’ Support SDKs that do not have global servers
Java
π’ Support for new Sonatype Central Publishing
π’ Support bigint, decimal format
π’ Retries support
π Handle non-numeric cursors for pagination
π Fixed imports and handling of security builder field names
π Pagination response constructor signature, internal whitespace/ordering
Python
π Invalid dataclasses if method has params both with and without default value
Ruby
π fix server param in docstring
π handle named servers
π improve security and parameter handling
π improve unmarshalling of complex data types
π change base64 encodingtechnique to support long credentials
Terraform
π’ Allow for arrays of non-string enums
π’ Support for custom plan validators
C#
π’ example generation for complex objects
π’ add support for nullable request bodies
π’ support .NET5 compilation checks
π’ extend BigInteger/Decimal support to arrays and maps
π’ add support for global security callbacks
π revert dotnet version default to 5.x
Go
π’ Allow string enums to be used in SSE data