Skip to content

feat!: add code default flag support - #49

Merged
beeme1mr merged 5 commits into
mainfrom
add-code-default-flag
Aug 21, 2025
Merged

beeme1mr merged 5 commits into
mainfrom
add-code-default-flag

Conversation

@beeme1mr

@beeme1mr beeme1mr commented Jul 29, 2025 •

Copy link
Copy Markdown
Member

Update the OpenAPI schema to support a code default flag. This is the first step in implementing the plan defined in this ADR.

Comment thread service/openapi.yaml Resolved
@beeme1mr
beeme1mr marked this pull request as ready for review August 5, 2025 17:59
@beeme1mr
beeme1mr requested a review from a team as a code owner August 5, 2025 17:59
@beeme1mr beeme1mr changed the title feat!: add code default flag support feat: add code default flag support Aug 5, 2025
@beeme1mr beeme1mr changed the title feat: add code default flag support feat!: add code default flag support Aug 6, 2025

@askpt askpt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@lukas-reining lukas-reining left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me!

@lukas-reining

Copy link
Copy Markdown
Member

cc @thomaspoignant

@beeme1mr
beeme1mr merged commit 3e0d4fe into main Aug 21, 2025
@beeme1mr
beeme1mr deleted the add-code-default-flag branch August 21, 2025 17:40
junebash pushed a commit to junebash/swift-ofrep that referenced this pull request Oct 31, 2026
OFREP 0.2 (open-feature/protocol#49, August 2025) lets a server answer
with no `value` when the caller should use its own default, e.g. for a
disabled flag: `{"key": "…", "reason": "DISABLED"}`. The generated types
predated that, so such a response failed to decode and came back as a
GENERAL error.

- Update the protocol submodule to that commit and regenerate the client
  with swift-openapi-generator 1.7.0 (the version that reproduces the
  current generated files exactly). The spec also drops the
  `/configuration` endpoint and the `cacheable` field.
- Map a code-default result to the caller's default value, with the
  server's reason and metadata and no error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BFSyqdKaPWDkcNBnKpZkMi
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.

4 participants