From f2b30ad77ebec550431969600931ed82477ad4bd Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Mon, 16 Jan 2023 14:54:41 -0500 Subject: [PATCH] fixup: reduce number thrashing in 1.1 Signed-off-by: Todd Baert --- specification.json | 24 ++++++++++---------- specification/sections/01-flag-evaluation.md | 12 +++++----- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/specification.json b/specification.json index 0cb6fcf4..aad63d58 100644 --- a/specification.json +++ b/specification.json @@ -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": [] diff --git a/specification/sections/01-flag-evaluation.md b/specification/sections/01-flag-evaluation.md index bc8f6923..70ab2788 100644 --- a/specification/sections/01-flag-evaluation.md +++ b/specification/sections/01-flag-evaluation.md @@ -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. @@ -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. @@ -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`. @@ -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: > @@ -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.