Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
contents: read

env:
GO_VERSION: 1.20.7
GO_VERSION: 1.22

jobs:
lint-protos:
Expand Down
2 changes: 1 addition & 1 deletion json/targeting.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,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"
Expand Down
2 changes: 1 addition & 1 deletion json/targeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,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:
Expand Down
5 changes: 4 additions & 1 deletion json/test/positive/custom-ops.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"defaultVariant": "wild",
"targeting": {
"fractional": [
{ "var": "user.name" },
{ "cat": [
{ "var": "$flagd.flagKey" },
{ "var": "user.name" }
]},
["clubs", 25],
["diamonds", 25],
["hearts", 25],
Expand Down