diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index c7a419e..597ac01 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -7,7 +7,7 @@ permissions: contents: read env: - GO_VERSION: 1.21 + GO_VERSION: 1.22 jobs: lint-protos: diff --git a/json/targeting.json b/json/targeting.json index 72c9995..0799285 100644 --- a/json/targeting.json +++ b/json/targeting.json @@ -475,7 +475,7 @@ "items": [ { "description": "Bucketing value used in pseudorandom assignment; should be unique and stable for each subject of flag evaluation. Defaults to a concatenation of the flagKey and targetingKey.", - "$ref": "#/$defs/varRule" + "$ref": "#/$defs/anyRule" }, { "$ref": "#/$defs/fractionalWeightArg" diff --git a/json/targeting.yaml b/json/targeting.yaml index 72998f8..3b6f3a0 100644 --- a/json/targeting.yaml +++ b/json/targeting.yaml @@ -377,7 +377,7 @@ type: object - description: Bucketing value used in pseudorandom assignment; should be unique and stable for each subject of flag evaluation. Defaults to a concatenation of the flagKey and targetingKey. - $ref: "#/$defs/varRule" + $ref: "#/$defs/anyRule" - $ref: "#/$defs/fractionalWeightArg" - $ref: "#/$defs/fractionalWeightArg" additionalItems: diff --git a/json/test/positive/custom-ops.json b/json/test/positive/custom-ops.json index 52c2b42..eae7ad8 100644 --- a/json/test/positive/custom-ops.json +++ b/json/test/positive/custom-ops.json @@ -14,7 +14,10 @@ "defaultVariant": "wild", "targeting": { "fractional": [ - { "var": "user.name" }, + { "cat": [ + { "var": "$flagd.flagKey" }, + { "var": "user.name" } + ]}, ["clubs", 25], ["diamonds", 25], ["hearts", 25],