Skip to content

Commit ffebdec

Browse files
toddbaertbeeme1mrlukas-reining
authored
fix: clarify in-memory provider reqs (#277)
Minor clarifications to the in-memory provider, especially around `flags changed` which at the moment is not consistently implemented. --------- Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Michael Beemer <[email protected]> Co-authored-by: Lukas Reining <[email protected]>
1 parent cd99c35 commit ffebdec

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

specification/appendix-a-included-utilities.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ This document contains requirements for auxiliary utilities provided by the SDK,
1616
The in-memory provider is intended to be used for testing; SDK consumers may use it for their use cases.
1717
Hence, the packaging, naming, and access modifiers must be set appropriately.
1818

19-
Given below are features this provider **MUST** support,
20-
21-
- Provider must be initiated with a pre-defined set of flags provided to a constructor
22-
- Feature Flag structure must be minimal but should help to test OpenFeature specification
23-
- EvaluationContext support should be provided through callbacks/lambda expressions
24-
- Provider must support a means of updating flag values, resulting in the emission of `PROVIDER_CONFIGURATION_CHANGED` events
25-
- Provider must be maintained to support specification changes
19+
This provider **MUST** have the following features:
20+
21+
- The provider is initiated with a pre-defined `flag set` provided in the constructor.
22+
- The flag structure must be minimalist and should help test the OpenFeature specification.
23+
- EvaluationContext support should be provided through callbacks/lambda expressions.
24+
- The provider must support a means of updating the `flag set`, resulting in the emission of `PROVIDER_CONFIGURATION_CHANGED` events.
25+
- The change event should consider all flags changed; a union of all previous and all new flag keys should be supplied in the `flags changed` field.
26+
- The provider must be maintained to support specification changes.
2627

2728
## SDK end-to-end testing
2829

0 commit comments

Comments
 (0)