September 5, 2024

2.0.0

(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:

1generators:
2 - name: fernapi/fern-java-sdk
3 config:
4 disable-required-property-builder-checks: true

(feat): Generated builder methods now enforce non-null checks for required fields, ensuring that all required fields are properly validated during object construction:

1@java.lang.Override
2@JsonSetter("name")
3public NameStage name(@NotNull String name) {
4 this.name = Objects.requireNonNull(name, "name must not be null");
5 return this;
6}