Skip to content

docs: deprecate list/array flag schema values - #328

Open
confidence-agent[bot] wants to merge 1 commit into
mainfrom
confidence-coding-agent/bb9fa4b5
Open

confidence-agent[bot] wants to merge 1 commit into
mainfrom
confidence-coding-agent/bb9fa4b5

Conversation

@confidence-agent

Copy link
Copy Markdown

Documents the deprecation of list/array flag schema/value types while preserving runtime behavior.

Changes:

  • README: new "Deprecated: list/array flag values" section (doubles as the release note). States lists in flags still resolve as before, no removal date, and that ConfidenceValue.List remains fully supported for context and event data.
  • ConfidenceValue.List: class Javadoc noting flag-value use is deprecated. No @Deprecated annotation.
  • ConfidenceTypeMapper / OpenFeatureTypeMapper: comments on the LIST_VALUE branch.

Why there are no @Deprecated annotations: there is no public API that is only used for flag lists. ConfidenceValue.List, of(List), ofStrings/ofIntegers/etc., isList() and asList() are shared with evaluation context and event arrays. Both type mappers are package-private. Annotating any of these would also flag valid context/event usage, so the deprecation is documented instead.

Nothing else changes: parsing, serialization, list resolution and signatures are the same. No version bump. CHANGELOG.md is left to release-please.

Verification: mvn -pl sdk-java,openfeature-provider-shared,openfeature-provider -am test passes (BUILD SUCCESS, 0 failures), including the fmt check.

Source: https://app.confidence.spotify.com/chats/unvny4azpxsjdp5cq7dy


Opened by the Confidence coding agent.

Documents the deprecation of list/array **flag** schema/value types while preserving runtime behavior.

Changes:
- README: new "Deprecated: list/array flag values" section (doubles as the release note). States lists in flags still resolve as before, no removal date, and that `ConfidenceValue.List` remains fully supported for context and event data.
- `ConfidenceValue.List`: class Javadoc noting flag-value use is deprecated. No `@Deprecated` annotation.
- `ConfidenceTypeMapper` / `OpenFeatureTypeMapper`: comments on the `LIST_VALUE` branch.

Why there are no `@Deprecated` annotations: there is no public API that is only used for flag lists. `ConfidenceValue.List`, `of(List)`, `ofStrings`/`ofIntegers`/etc., `isList()` and `asList()` are shared with evaluation context and event arrays. Both type mappers are package-private. Annotating any of these would also flag valid context/event usage, so the deprecation is documented instead.

Nothing else changes: parsing, serialization, list resolution and signatures are the same. No version bump. CHANGELOG.md is left to release-please.

Verification: `mvn -pl sdk-java,openfeature-provider-shared,openfeature-provider -am test` passes (BUILD SUCCESS, 0 failures), including the fmt check.

Source: https://app.confidence.spotify.com/chats/unvny4azpxsjdp5cq7dy
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.

0 participants