Skip to content

Commit e8fe7f2

Browse files
authored
More lemmy fixes (#35)
* Making federation_worker_count optional * Updating README
1 parent 080cfaf commit e8fe7f2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ We use Swift Package Manager to make it easy to install and use the Lemmy Swift
1515

1616
```swift
1717
dependencies: [
18-
.package(url: "https://github.com/rrainn/Lemmy-Swift-Client.git", .upToNextMajor(from: "3.0.0"))
18+
.package(url: "https://github.com/rrainn/Lemmy-Swift-Client.git", .exact("3.0.0"))
1919
]
2020
```
2121

22+
Please note, that we do not subscribe to SemVer versioning at this time due to the massive amount of Lemmy API changes. Please consider pinning Lemmy-Swift-Client to a specific version at this time.
23+
2224
## Usage
2325

2426
Below is an example of a basic usage example of how to use the Lemmy Swift Client.

Sources/Lemmy-Swift-Client/Lemmy API/Structs/LocalSite.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct LocalSite: Codable {
1313
public let enable_nsfw: Bool
1414
public let federation_debug: Bool?
1515
public let federation_enabled: Bool
16-
public let federation_worker_count: Int
16+
public let federation_worker_count: Int?
1717
public let hide_modlog_mod_names: Bool
1818
public let id: Int
1919
public let legal_information: String?
@@ -40,7 +40,7 @@ public struct LocalSite: Codable {
4040
enable_nsfw: Bool,
4141
federation_debug: Bool? = nil,
4242
federation_enabled: Bool,
43-
federation_worker_count: Int,
43+
federation_worker_count: Int? = nil,
4444
hide_modlog_mod_names: Bool,
4545
id: Int,
4646
legal_information: String? = nil,

0 commit comments

Comments
 (0)