Skip to content

Commit

Permalink
fixup: reduce number thrashing in 1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <toddbaert@gmail.com>
  • Loading branch information
toddbaert committed Jan 16, 2023
1 parent 66a3b72 commit f2b30ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions specification.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,43 @@
"children": []
},
{
"id": "Requirement 1.1.2",
"machine_id": "requirement_1_1_2",
"id": "Requirement 1.1.2.1",
"machine_id": "requirement_1_1_2_1",
"content": "The `API` MUST expose a `provider mutator`, a function to set the global `provider` singleton, which accepts an API-conformant `provider` implementation.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.1.3",
"machine_id": "requirement_1_1_3",
"id": "Requirement 1.1.2.2",
"machine_id": "requirement_1_1_2_2",
"content": "The `provider mutator` function MUST run the `initialize` function on the newly registered provider.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.1.4",
"machine_id": "requirement_1_1_4",
"id": "Requirement 1.1.3",
"machine_id": "requirement_1_1_3",
"content": "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.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.1.5",
"machine_id": "requirement_1_1_5",
"id": "Requirement 1.1.4",
"machine_id": "requirement_1_1_4",
"content": "The API MUST provide a function for retrieving the metadata field of the configured `provider`.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.1.6",
"machine_id": "requirement_1_1_6",
"id": "Requirement 1.1.5",
"machine_id": "requirement_1_1_5",
"content": "The `API` MUST provide a function for creating a `client` which accepts the following options: - name (optional): A logical string identifier for the client.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.1.7",
"machine_id": "requirement_1_1_7",
"id": "Requirement 1.1.6",
"machine_id": "requirement_1_1_6",
"content": "The client creation function MUST NOT throw, or otherwise abnormally terminate.",
"RFC 2119 keyword": "MUST NOT",
"children": []
Expand Down
12 changes: 6 additions & 6 deletions specification/sections/01-flag-evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It's important that multiple instances of the `API` not be active, so that state

### Setting a provider

#### Requirement 1.1.2
#### Requirement 1.1.2.1

> The `API` **MUST** expose a `provider mutator`, a function to set the global `provider` singleton, which accepts an API-conformant `provider` implementation.
Expand All @@ -33,13 +33,13 @@ OpenFeature.setProvider(new MyProvider());

See [provider](./02-providers.md) for details.

#### Requirement 1.1.3
#### Requirement 1.1.2.2

> The `provider mutator` function **MUST** run the `initialize` function on the newly registered provider.
See [provider initialization](./02-providers.md#24-initialization).

#### Requirement 1.1.4
#### Requirement 1.1.3

> 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.
Expand All @@ -50,7 +50,7 @@ OpenFeature.addHooks([new MyHook()]);

See [hooks](./04-hooks.md) for details.

#### Requirement 1.1.5
#### Requirement 1.1.4

> The API **MUST** provide a function for retrieving the metadata field of the configured `provider`.
Expand All @@ -61,7 +61,7 @@ OpenFeature.getProviderMetadata();

See [provider](./02-providers.md) for details.

#### Requirement 1.1.6
#### Requirement 1.1.5

> The `API` **MUST** provide a function for creating a `client` which accepts the following options:
>
Expand All @@ -76,7 +76,7 @@ OpenFeature.getClient({

The name is a logical identifier for the client.

#### Requirement 1.1.7
#### Requirement 1.1.6

> The client creation function **MUST NOT** throw, or otherwise abnormally terminate.
Expand Down

0 comments on commit f2b30ad

Please sign in to comment.