2.2.0
(feat):
We now provide endpoint methods for streaming byte array requests in addition to the previous methods accepting
byte array directly.
(chore):
Bump Jackson version to latest (2.17.2)
(feat):
We now provide endpoint methods for streaming byte array requests in addition to the previous methods accepting
byte array directly.
(chore):
Bump Jackson version to latest (2.17.2)
(feat):
We no longer enforce non-null constraints for Object type properties in builders.
(break):
The SDK generator is now on major version 2. To take this upgrade without any breaks, please add the below
configuration to your generators.yml
file:
(feat):
Generated builder methods now enforce non-null checks for required fields, ensuring that all required
fields are properly validated during object construction:
(fix):
Fixed a bug where optional collections are not handled properly in paginated responses.
(fix):
Fixed a bug where local generation custom config doesn’t pick up some values, including exception naming.
(fix):
Fixed a bug where OkHttp responses could be closed prematurely.
(feat):
Generated builder methods for optional fields can now accept null directly.
(feat):
The generator now adds a class-level @JsonInclude(JsonInclude.Include.NON_ABSENT)
annotation to
each generated type in place of the previous @JsonInclude(JsonInclude.Include.NON_EMPTY)
by default. This is
configurable in the generators.yml
file:
(break):
The Java SDK is now on major version 1. To take this upgrade without any breaks, please add the below
configuration to your generators.yml
file:
(feat):
We now generate Exception types for all errors that are defined in the IR. Generated clients with an
error discrimination strategy of “status code” will throw one of these typed Exceptions based on the status code of
error responses. Example error type:
(feat):
Add support for cursor and offset pagination.
For example, consider the following endpoint /users
endpoint:
The generated SyncPagingIterable<User>
can then be used to traverse through the User
objects:
Or stream them:
Or statically calling nextPage()
to perform the pagination manually: