5.0.0
(break): The Java SDK generator reads configuration from sdk-config.yml instead of generators.yml. Run fern sdk migrate to create sdk-config.yml from your existing configuration. 5.0.0 is also the minimum version for generating Java SDK Config targets locally.
This release changes the generated SDK. See the Java v5 migration guide for details and code updates:
- Type names and imports change.
- Paginated methods return a pager.
- Responses are validated against the schema.
- Builders require different fields.
- Exceptions are organized by HTTP status.
- Dates and integers use specific types.
- String fields with a declared enum become enums.
- File uploads are set on the request object.
labelandmatrixpath parameters are encoded.- Build files and documentation change.
- WebSocket channels change: credentials are required to connect, the two type packages swap contents, the discriminator is a typed field, parameter wrapper types become
String, reconnection reports exhaustion, anddisconnect()before connecting doesn’t throw.