February 4, 2024

0.7.1

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

1Imdb imdb = Imdb.builder()
2 .apiKey("...")
3 .build();
4
5var response = imdb.ticket.purchase("theatre-id", IdempotentRequestOptions.builder()
6 .idempotencyKey("...")
7 .build());

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

1Imdb imdb = Imdb.builder()
2 .apiKey("...") // defaults to System.getenv("IMDB_API_KEY")
3 .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

1Actor:
2 properties:
3 name: string
4 isMale: literal<true>

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

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