Skip to content

Commit d6497c0

Browse files
authored
Make var userInfo for JSONEncoder and JSONDecoder public (#51)
Fixes #50
1 parent 33f2da3 commit d6497c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PureSwiftJSON/Decoding/JSONDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
public struct PSJSONDecoder {
3-
@usableFromInline var userInfo: [CodingUserInfoKey: Any] = [:]
3+
public var userInfo: [CodingUserInfoKey: Any] = [:]
44

55
public init() {}
66

Sources/PureSwiftJSON/Encoding/JSONEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class JSONObject {
9696
}
9797

9898
public struct PSJSONEncoder {
99-
var userInfo: [CodingUserInfoKey: Any] = [:]
99+
public var userInfo: [CodingUserInfoKey: Any] = [:]
100100

101101
public init() {}
102102

0 commit comments

Comments
 (0)