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
* Adds additional clarity regarding provider/client name mapping, as well as intent.
* Requires that READY events only run immediately for clients when the provider is already ready.
* Replaces client-name for provider-name in events-details.
Copy file name to clipboardExpand all lines: specification.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
{
32
32
"id": "Requirement 1.1.3",
33
33
"machine_id": "requirement_1_1_3",
34
-
"content": "The `API` MUST provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.",
34
+
"content": "The `API` MUST provide a function to bind a given `provider` to a client `name`. If the client-name already has a bound provider, it is overwritten with the new mapping.",
35
35
"RFC 2119 keyword": "MUST",
36
36
"children": []
37
37
},
@@ -675,7 +675,7 @@
675
675
{
676
676
"id": "Requirement 5.2.3",
677
677
"machine_id": "requirement_5_2_3",
678
-
"content": "The `event details` MUST contain the `client name` associated with the event.",
678
+
"content": "The `event details` MUST contain the `provider name` associated with the event.",
679
679
"RFC 2119 keyword": "MUST",
680
680
"children": []
681
681
},
@@ -724,7 +724,7 @@
724
724
{
725
725
"id": "Requirement 5.3.3",
726
726
"machine_id": "requirement_5_3_3",
727
-
"content": "`PROVIDER_READY` handlers attached after the provider is already in a ready state MUST run immediately.",
727
+
"content": "Client `PROVIDER_READY` handlers attached after the provider is in a ready state MUST run immediately.",
Copy file name to clipboardExpand all lines: specification/sections/01-flag-evaluation.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,9 @@ It's important that multiple instances of the `API` not be active, so that state
31
31
OpenFeature.setProvider(newMyProvider());
32
32
```
33
33
34
-
This provider is used if there is not a more specific client name binding. (see later requirements).
34
+
This provider is used if a client is not bound to a specific provider through its name.
35
35
36
-
See [provider](./02-providers.md) for details.
36
+
See [provider](./02-providers.md), [creating clients](#creating-clients).
37
37
38
38
#### Requirement 1.1.2.2
39
39
@@ -56,12 +56,16 @@ see: [shutdown](./02-providers.md#25-shutdown), [setting a provider](#setting-a-
56
56
57
57
#### Requirement 1.1.3
58
58
59
-
> The `API`**MUST** provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.
59
+
> The `API`**MUST** provide a function to bind a given `provider` to a client `name`. If the client-name already has a bound provider, it is overwritten with the new mapping.
Named clients can be associated with a particular provider by supplying a matching name when the provider is set.
66
+
67
+
See [creating clients](#creating-clients).
68
+
65
69
#### Requirement 1.1.4
66
70
67
71
> The `API`**MUST** provide a function to add `hooks` which accepts one or more API-conformant `hooks`, and appends them to the collection of any previously added hooks. When new hooks are added, previously added hooks are not removed.
0 commit comments