Skip to content

Commit e547357

Browse files
committed
Add public to init
1 parent f9ea2d9 commit e547357

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Once you have your Swift package set up, adding Alamofire as a dependency is as
1212

1313
```swift
1414
dependencies: [
15-
.package(url: "https://github.com/nimblehq/JSONMapper.git", .upToNextMajor(from: "1.0.0"))
15+
.package(url: "https://github.com/nimblehq/JSONMapper.git", .upToNextMajor(from: "1.0.1"))
1616
]
1717
```
1818

Sources/JSONMapper/JSONAPIDecoder.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public class JSONAPIDecoder: JSONDecoder {
1212

1313
private let decoder: JSONEncoder
1414

15-
init(decoder: JSONEncoder = JSONEncoder()) {
15+
public init(decoder: JSONEncoder = JSONEncoder()) {
1616
self.decoder = decoder
17+
super.init()
1718
}
1819

1920
public override func decode<T>(_ type: T.Type, from data: Data) throws -> T where T: Decodable {

0 commit comments

Comments
 (0)