Skip to content

Commit

Permalink
fix: add dynamic-context condition to 4.1.4 (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert authored Nov 21, 2023
1 parent 8166017 commit 2973c53
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
18 changes: 13 additions & 5 deletions specification.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,19 @@
"children": []
},
{
"id": "Requirement 4.1.4",
"machine_id": "requirement_4_1_4",
"content": "The evaluation context MUST be mutable only within the `before` hook.",
"RFC 2119 keyword": "MUST",
"children": []
"id": "Condition 4.1.4",
"machine_id": "condition_4_1_4",
"content": "The implementation uses the dynamic-context paradigm.",
"RFC 2119 keyword": null,
"children": [
{
"id": "Conditional Requirement 4.1.4.1",
"machine_id": "conditional_requirement_4_1_4_1",
"content": "The evaluation context MUST be mutable only within the `before` hook.",
"RFC 2119 keyword": "MUST",
"children": []
}
]
},
{
"id": "Requirement 4.2.1",
Expand Down
8 changes: 7 additions & 1 deletion specification/sections/04-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ Hook context exists to provide hooks with information about the invocation.

> The `flag key`, `flag type`, and `default value` properties **MUST** be immutable. If the language does not support immutability, the hook **MUST NOT** modify these properties.
#### Requirement 4.1.4
#### Condition 4.1.4

> The implementation uses the dynamic-context paradigm.
see: [dynamic-context paradigm](../glossary.md#dynamic-context-paradigm)

##### Conditional Requirement 4.1.4.1

> The evaluation context **MUST** be mutable only within the `before` hook.
Expand Down

0 comments on commit 2973c53

Please sign in to comment.