Skip to content

Commit

Permalink
Client creation must not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbaert committed Jun 8, 2022
1 parent 2f4102a commit f12d67d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions specification.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
"RFC 2119 keyword": "MUST",
"children": []
},
{
"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": []
},
{
"id": "Requirement 1.2.1",
"machine_id": "requirement_1_2_1",
Expand Down
6 changes: 6 additions & 0 deletions specification/flag-evaluation/flag-evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ OpenFeature.getClient({

The name is a logical identifier for the client.

#### Requirement 1.1.6

> The client creation function **MUST NOT** throw, or otherwise abnormally terminate.
Clients may be created in critical code paths, and even per-request in server-side HTTP contexts. Therefor, in keeping with the principle that OpenFeature should never cause abnormal execution of the first party application, this function should never throw. Abnormal execution in initialization should instead occur during provider registration.

### Client Usage

#### Requirement 1.2.1
Expand Down

0 comments on commit f12d67d

Please sign in to comment.