feat: enable forward-compatible enums - #22
Open
atonks2 wants to merge 1 commit into
Open
Conversation
Sets forwardCompatibleEnumsByDefault: true so the generated SDK treats unrecognized enum values as open/unknown instead of raising a validation error, per Speakeasy's SDK resilience guidance. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
| explicitDocImports: false | ||
| flattenGlobalSecurity: true | ||
| forwardCompatibleEnumsByDefault: false | ||
| forwardCompatibleEnumsByDefault: true |
There was a problem hiding this comment.
Per Conventional Commits convention, feat requires a component segment. Correct the title to feat(sdk): enable forward-compatible enums or feat(java): enable forward-compatible enums.
(95% confidence — Component choice (sdk vs java) could be confirmed by checking how other SDK-config PRs are titled in this repo.)
bpross
approved these changes
Aug 27, 2026
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.
Description
Sets
forwardCompatibleEnumsByDefault: truein.speakeasy/gen.yamlso this SDK treats unrecognized enum values in API responses as open/unknown instead of raising a validation error. Today, when the API starts returning a new enum value, older pinned SDKs throw an exception on the response with no way for the caller to know whether their request actually succeeded.Per Speakeasy's SDK resilience docs.
Config-only change — the next scheduled/triggered SDK generation run will regenerate against this setting.