Repository navigation
docs: deprecate list/array flag schema values - #328
Open
confidence-agent[bot] wants to merge 1 commit into
Open
confidence-agent[bot] wants to merge 1 commit into
confidence-agent[bot] wants to merge 1 commit into
Conversation
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
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.
Documents the deprecation of list/array flag schema/value types while preserving runtime behavior.
Changes:
ConfidenceValue.Listremains fully supported for context and event data.ConfidenceValue.List: class Javadoc noting flag-value use is deprecated. No@Deprecatedannotation.ConfidenceTypeMapper/OpenFeatureTypeMapper: comments on theLIST_VALUEbranch.Why there are no
@Deprecatedannotations: there is no public API that is only used for flag lists.ConfidenceValue.List,of(List),ofStrings/ofIntegers/etc.,isList()andasList()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 testpasses (BUILD SUCCESS, 0 failures), including the fmt check.Source: https://app.confidence.spotify.com/chats/unvny4azpxsjdp5cq7dy
Opened by the Confidence coding agent.