Skip to navigation

0.7.1

(feat): The SDK generator now supports idempotency headers. Users will be able to specify the idempotency headers in RequestOptions.

Imdb imdb = Imdb.builder()
.apiKey("...")
.build();
var response = imdb.ticket.purchase("theatre-id", IdempotentRequestOptions.builder()
.idempotencyKey("...")
.build());

(feat): The SDK generator now supports scanning API credentials via environment variables.

Imdb imdb = Imdb.builder()
.apiKey("...") // defaults to System.getenv("IMDB_API_KEY")
.build();

(feat): The generated models now support boolean literals and users do not have to specify them in the builder. For example, for the following object

Actor:
properties:
name: string
isMale: literal<true>

the user will not need to specify the literal properties when building the object.

var actor = Actor.builder()
.name("Brad Pitt")
.build();