Skip to content

Commit 466988a

Browse files
authored
chore: add conflicts warning for experimentsMap (#429)
Add a warning comments about experimentsMap with key conflicts.
1 parent 3850038 commit 466988a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Optimizely/OptimizelyConfig.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ public protocol OptimizelyConfig {
2222
var environmentKey: String { get }
2323
var sdkKey: String { get }
2424
var revision: String { get }
25+
26+
// This experimentsMap is for experiments of legacy projects only.
27+
// For flag projects, experiment keys are not guaranteed to be unique
28+
// across multiple flags, so this map may not include all experiments
29+
// when keys conflict.
2530
var experimentsMap: [String: OptimizelyExperiment] { get }
31+
2632
var featuresMap: [String: OptimizelyFeature] { get }
2733
var attributes: [OptimizelyAttribute] { get }
2834
var audiences: [OptimizelyAudience] { get }

0 commit comments

Comments
 (0)