Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce variation method with generic return types #342

Merged
merged 1 commit into from
Feb 15, 2024

Commits on Feb 15, 2024

  1. feat: Introduce variation method with generic return types

    Customers using a JSON flag often prefer the evaluation result return a
    custom object instead of an LDValue. This commit supports that by
    introducing a new `LDValueDecoder` (copied and lightly modified from the
    Swift Core Libs `JSONDecoder` implementation).
    
    This decoder allows decoding into arbitrary types directly from an
    LDValue, without paying the penalty for an intermediate JSON encoding
    step (i.e. LDValue -> JSON str -> Custom Type).
    keelerm84 committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    3d89db4 View commit details
    Browse the repository at this point in the history