Skip to content

Commit 003bbb6

Browse files
fix: Make HookContext properties public (#45)
## This PR - When writing a custom hook I notice that we cannot read the `HookContext` properties. - This PR is making all the `HookContext` properties public. Signed-off-by: Thomas Poignant <[email protected]> Co-authored-by: Nicklas Lundin <[email protected]>
1 parent 7256a3c commit 003bbb6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/OpenFeature/HookContext.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import Foundation
22

33
/// A data struct to hold immutable context that ``Hook`` instances use.
44
public struct HookContext<T> {
5-
var flagKey: String
6-
var type: FlagValueType
7-
var defaultValue: T
8-
var ctx: EvaluationContext?
9-
var clientMetadata: ClientMetadata?
10-
var providerMetadata: ProviderMetadata?
5+
public var flagKey: String
6+
public var type: FlagValueType
7+
public var defaultValue: T
8+
public var ctx: EvaluationContext?
9+
public var clientMetadata: ClientMetadata?
10+
public var providerMetadata: ProviderMetadata?
1111
}

0 commit comments

Comments
 (0)