Skip to content

Commit

Permalink
Merge branch 'main' into chainable-if-conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr authored Apr 8, 2024
2 parents 87e4d3c + ea4f119 commit bf2ddc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
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.21
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 @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion json/targeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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

0 comments on commit bf2ddc3

Please sign in to comment.