Skip to content

feat: enable forward-compatible enums - #20

Open
atonks2 wants to merge 1 commit into
versions/2026.04from
forward-compatible-enums-2026.04
Open

feat: enable forward-compatible enums#20
atonks2 wants to merge 1 commit into
versions/2026.04from
forward-compatible-enums-2026.04

Conversation

@atonks2

@atonks2 atonks2 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

Sets forwardCompatibleEnumsByDefault: true in .speakeasy/gen.yaml so 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.

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>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Speakeasy generator configuration for Ruby in .speakeasy/gen.yaml by enabling forward-compatible enums by default (forwardCompatibleEnumsByDefault: true). There are no review comments, and I have no feedback to provide.

@moov-review-bot moov-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity Count
🚫 Blocking 0
⚠️ Important 1
💡 Suggestion 0

Config-only PR enabling forward-compatible enums for the Ruby SDK; PR title is missing a required component per Moov's Conventional Commits convention.

Trigger another review: /moov-review

Comment thread .speakeasy/gen.yaml
enableFormatting: false
flattenGlobalSecurity: true
forwardCompatibleEnumsByDefault: false
forwardCompatibleEnumsByDefault: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ PR title missing required component for feat type

PR title feat: enable forward-compatible enums violates Conventional Commits convention. Add component: feat(ruby): enable forward-compatible enums

(95% confidence — The convention is clearly documented; only uncertainty is the exact preferred component name (ruby vs sdk vs gen).)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants