You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/specifications/protos.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,7 +321,9 @@ FetchAllFlagsRequest is the request to fetch all flags. Clients send this reques
321
321
| Field | Type | Label | Description |
322
322
| ----- | ---- | ----- | ----------- |
323
323
| provider_id |[string](#string)|| Optional: A unique identifier for clients initiating the request. The server implementations may utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter flag configurations that it can expose to this request. This field is intended to be optional. However server implementations may enforce it. ex:- provider_id: flagd-weatherapp-sidecar |
324
-
| selector |[string](#string)|| Optional: A selector for the flag configuration request. The server implementation may utilize this to select flag configurations from a collection, select the source of the flag or combine this to any desired underlying filtering mechanism. ex:- selector: 'source=database,app=weatherapp'|
324
+
| selector | [string](#string) | | **Deprecated.** Optional: A selector for the flag configuration request. The server implementation may utilize this to select flag configurations from a collection, select the source of the flag or combine this to any desired underlying filtering mechanism. ex:- selector: 'source=database,app=weatherapp'
325
+
326
+
Deprecated: Use the 'Flagd-Selector' header instead. Remember to reserve field number 2 if this is removed; |
325
327
326
328
327
329
@@ -379,7 +381,9 @@ Implementations of Flagd providers and Flagd itself send this request, acting as
379
381
| Field | Type | Label | Description |
380
382
| ----- | ---- | ----- | ----------- |
381
383
| provider_id |[string](#string)|| Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter flag configurations that it can expose to this request. This field is intended to be optional. However server implementations may enforce it. ex:- provider_id: flagd-weatherapp-sidecar |
382
-
| selector |[string](#string)|| Optional: A selector for the flag configuration request. The server implementation may utilize this to select flag configurations from a collection, select the source of the flag or combine this to any desired underlying filtering mechanism. ex:- selector: 'source=database,app=weatherapp'|
384
+
| selector | [string](#string) | | **Deprecated.** Optional: A selector for the flag configuration request. The server implementation may utilize this to select flag configurations from a collection, select the source of the flag or combine this to any desired underlying filtering mechanism. ex:- selector: 'source=database,app=weatherapp'
385
+
386
+
Deprecated: Use the 'Flagd-Selector' header instead. Remember to reserve field number 2 if this is removed; |
Copy file name to clipboardExpand all lines: docs/schema/v0/targeting.json
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
"type": "string"
36
36
},
37
37
{
38
-
"description": "When returned from rules, strings are used to as keys to retrieve the associated value from the \"variants\" object. Be sure that the returned string is present as a key in the variants!.",
38
+
"description": "When returned from rules, the behavior of arrays is not defined.",
39
39
"type": "array"
40
40
}
41
41
]
@@ -461,18 +461,26 @@
461
461
"maxItems": 2,
462
462
"items": [
463
463
{
464
-
"description": "If this bucket is randomly selected, this string is used to as a key to retrieve the associated value from the \"variants\" object.",
465
-
"type": "string"
464
+
"description": "If this bucket is randomly selected, this JSONLogic will be evaluated, and the result will be used as the variant key to return from the variants map.",
465
+
"$ref": "#/definitions/args"
466
466
},
467
467
{
468
-
"description": "Weighted distribution for this variant key.",
469
-
"type": "number"
468
+
"description": "Weighted distribution for this variant key. Must be a non-negative integer. Can be a JSONLogic expression that evaluates to a number (e.g. for time-based progressive rollouts); computed negative weights are clamped to 0 at evaluation time. The total weight sum across all variants must not exceed 2,147,483,647.",
469
+
"oneOf": [
470
+
{
471
+
"type": "integer",
472
+
"minimum": 0
473
+
},
474
+
{
475
+
"$ref": "#/definitions/anyRule"
476
+
}
477
+
]
470
478
}
471
479
]
472
480
},
473
481
"fractionalOp": {
474
482
"type": "array",
475
-
"minItems": 3,
483
+
"minItems": 1,
476
484
"$comment": "there seems to be a bug here, where ajv gives a warning (not an error) because maxItems doesn't equal the number of entries in items, though this is valid in this case",
0 commit comments