Skip to content

Commit 9c47ca3

Browse files
committed
Add documentation explaining BoolContainer and StringNumberContainer purpose
1 parent 685bb70 commit 9c47ca3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/AlgoliaSearchClient/Helpers/Coding/Wrappers/BoolContainer.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import Foundation
99

10+
/**
11+
Helper structure ensuring the decoding of a bool value from a "volatile" JSON
12+
occasionally providing bool values in the form of String
13+
*/
1014
struct BoolContainer: RawRepresentable, Codable {
1115

1216
let rawValue: Bool

Sources/AlgoliaSearchClient/Helpers/Coding/Wrappers/StringNumberContainer.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import Foundation
99

10+
/**
11+
Helper structure ensuring the decoding of a number value from a "volatile" JSON
12+
occasionally providing number values in the form of String
13+
*/
1014
struct StringNumberContainer: RawRepresentable, Codable {
1115

1216
let rawValue: Double

0 commit comments

Comments
 (0)