Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 47ce8b1

Browse files
committed
Ensured that all attributes of SiteCreationResponse are sufficiently visible
1 parent 09dbbea commit 47ce8b1

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PODS:
2727
- OHHTTPStubs/Swift (6.1.0):
2828
- OHHTTPStubs/Default
2929
- UIDeviceIdentifier (0.5.0)
30-
- WordPressKit (1.7.0-beta.1):
30+
- WordPressKit (1.7.0-beta.2):
3131
- Alamofire (~> 4.7.3)
3232
- CocoaLumberjack (= 3.4.2)
3333
- NSObject-SafeExpectations (= 0.0.3)
@@ -70,7 +70,7 @@ SPEC CHECKSUMS:
7070
OCMock: 43565190abc78977ad44a61c0d20d7f0784d35ab
7171
OHHTTPStubs: 1e21c7d2c084b8153fc53d48400d8919d2d432d0
7272
UIDeviceIdentifier: a959a6d4f51036b4180dd31fb26483a820f1cc46
73-
WordPressKit: 4c6b7320a5bc604cb3a87d8f80298f2fa0e14ab6
73+
WordPressKit: e2791dc68dcd72bd97043edc06dc0d11acd53728
7474
WordPressShared: f55be10963c8f6dbbc8e896450805ba1dd5353f7
7575
wpxmlrpc: bfc572f62ce7ee897f6f38b098d2ba08732ecef4
7676

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressKit"
3-
s.version = "1.7.0-beta.1"
3+
s.version = "1.7.0-beta.2"
44
s.summary = "WordPressKit offers a clean and simple WordPress.com and WordPress.org API."
55

66
s.description = <<-DESC

WordPressKit/WordPressComServiceRemote+SiteCreation.swift

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,29 +101,31 @@ private struct SiteInformation: Encodable {
101101
/// This value type is intended to express a site creation response.
102102
///
103103
public struct SiteCreationResponse: Decodable {
104-
struct CreatedSite: Decodable {
105-
let identifier: String
106-
let title: String
107-
let urlString: String
108-
let xmlrpcString: String
109-
110-
enum CodingKeys: String, CodingKey {
111-
case identifier = "blogid"
112-
case title = "blogname"
113-
case urlString = "url"
114-
case xmlrpcString = "xmlrpc"
115-
}
116-
}
117-
118-
let createdSite: CreatedSite
119-
let success: Bool
104+
public let createdSite: CreatedSite
105+
public let success: Bool
120106

121107
enum CodingKeys: String, CodingKey {
122108
case createdSite = "blog_details"
123109
case success
124110
}
125111
}
126112

113+
/// This value type describes the site that was created.
114+
///
115+
public struct CreatedSite: Decodable {
116+
public let identifier: String
117+
public let title: String
118+
public let urlString: String
119+
public let xmlrpcString: String
120+
121+
enum CodingKeys: String, CodingKey {
122+
case identifier = "blogid"
123+
case title = "blogname"
124+
case urlString = "url"
125+
case xmlrpcString = "xmlrpc"
126+
}
127+
}
128+
127129
// MARK: - WordPressComServiceRemote (Site Creation)
128130

129131
/// Describes the errors that could arise during the process of site creation.

0 commit comments

Comments
 (0)