Skip to content

JSONPatch for off_variation doesn't work, result unchanged #17

@GeosMeos

Description

@GeosMeos

I'm trying to patch off_variation in a specific environment(test in this case)

The following doesn't work(Note that i've taken this example from auto generated examples:

patch_off_variation = PatchWithComment(
        patch=JSONPatch([
            PatchOperation(
                op="replace",
                path="/environments/test/off_variation",
                value=1,
            ),
        ]),
        comment=f"{project_key}-patch-off_variation",
    )
api_response = api_instance.patch_feature_flag(project_key, feature_flag_key, patch_off_variation)

This however works with other fields such as on or fallthrough.variation

I've tried int and str, expected an error but operation returns 200.

Version(from pip freeze)
launchdarkly-api @ git+https://github.com/launchdarkly/api-client-python.git@9bdc16d79381a1f03c8a51dd69323c80a13a286d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions