0.31.0

(feat): Add omitUndefined generator option. This is enabled with the following config:

1groups:
2 generators:
3 - name: fernapi/fern-typscript-node-sdk
4 version: 0.31.0
5 ...
6 config:
7 omitUndefined: true

When enabled, any property set to an explicit undefined is not included in the serialized result. For example,

1const request: Acme.CreateUserRequest = {
2 firstName: "John",
3 lastName: "Doe",
4 email: undefined
5};

By default, explicit undefined values are serialized as null like so:

1{
2 "firstName": "John",
3 "lastName": "Doe",
4 "email": null
5}

When omitUndefined is enabled, the JSON object is instead serialized as:

1{
2 "firstName": "John",
3 "lastName": "Doe"
4}