Product Updates
Java General Availability and managed OAuth support
Sagar Batchu
March 15, 2024 - 2 min read
Another changelog, another massive improvement to our SDK generation. This month, itโs Javaโs turn for a GA makeover. But our other languages arenโt gathering dust. Weโve added support for managed OAuth2.0 client credentials flow, and flattened response objects.
Letโs jump into it ๐
Java General Availability
Java is inevitable. You can have your head turned by all the new & exciting languages that are being created, but if you are serving a large organization, you will need to be ready to support Java.
Which is why we are excited to announce that Java is now Generally Available on the Speakeasy Platform! General availability means that every feature of our generation platform is now available for Java. As a bonus, weโve taken this work as an opportunity to completely revamp the developer experience. Here are the highlights of whatโs changed:
- Enhanced
nullsafety andOptionalsupport - Builder patterns for better readability, discoverability, and convenient overloads
- Lists instead of arrays for collections
- No direct field access (getter methods are used now)
- A simplified Gradle project structure
- Support for non-discriminated
oneOfs - Auto-Pagination
- Retry support
- OAuth2.0 support
Check out the new interface:
For the details, please read the full announcement here.
๐ข Improvements and Bug Fixes ๐
Based on most recent version: Speakeasy v1.210.0ย
๐ข Handle flat responses for empty status codes
๐ข Fail schema validation if missing a server
๐ข Propagate defaults for examples in parameters
Typescript
๐ข Support Empty Error types
๐ข Add support for response formats and flat responses
๐ข Add managed OAuth2.0 client credentials flow support (as a SDK hook)
๐ข Handle null enums fields and union members
๐ Fix missing imports with flat responses
Java
๐ข Support passing in additional dependencies in the SDK
๐ข Support callAsStream autopagination syntax
๐ Fix typo in README.md Error Handling section
Python
๐ข Add support for response formats and flat responses
Terraform
๐ข Use the default http client in TF to remove timeouts
C#
๐ข Support naming servers
Go
๐ข Add support for response formats and flat responses