SDK regeneration - #55
Merged
Merged
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 3.34.8
The SDK regeneration renamed the generated top-level clients to *Base (client-class-name: ExtendClientBase, exported-client-class-name: ExtendClient). This adds the hand-written public classes that keep the historical type names so customer code compiles unchanged: - ExtendClient / ExtendClientBuilder (extend *Base, carry polling + webhooks) - AsyncExtendClient / AsyncExtendClientBuilder, RawExtendClient, AsyncRawExtendClient - ExtendClientWrapper is now a @deprecated thin subclass of ExtendClient - .fernignore protects the hand-written classes from future regeneration Builder setters use covariant return types so fluent chains and build() keep returning the concrete types. Exception names stay ExtendClient*Exception.
- ExtendClientBuilder/AsyncExtendClientBuilder: the overridden build() bypassed the base builder's null-token check + validateConfiguration() (token is private in the base). Track a shadow token (initialized from EXTEND_API_KEY) and re-run the same fail-fast + validation, so missing-credential construction fails with the helpful message instead of a later opaque 401. - ExtendClient/AsyncExtendClient: memoize the RawExtendClient returned by withRawResponse() to match the base client's cached-instance behavior. - ExtendClient: drop unused Environment/OkHttpClient imports (spotless-clean).
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated SDK generation by Fern