From 0472bd8a1888dd5c3497ad57ec3c315292dca0ab Mon Sep 17 00:00:00 2001 From: "Tanner W. Stokes" Date: Wed, 18 May 2022 21:24:22 -0400 Subject: [PATCH] Match API property name. --- WordPressKit/RemoteSiteDesign.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WordPressKit/RemoteSiteDesign.swift b/WordPressKit/RemoteSiteDesign.swift index fabe92172..594448c62 100644 --- a/WordPressKit/RemoteSiteDesign.swift +++ b/WordPressKit/RemoteSiteDesign.swift @@ -33,7 +33,7 @@ public struct RemoteSiteDesign: Codable { public let mobileScreenshot: String? public let tabletScreenshot: String? public let themeSlug: String? - public let groups: [String]? + public let group: [String]? public let segmentID: Int64? public let categories: [RemoteSiteDesignCategory] @@ -45,7 +45,7 @@ public struct RemoteSiteDesign: Codable { case mobileScreenshot = "preview_mobile" case tabletScreenshot = "preview_tablet" case themeSlug = "theme" - case groups + case group case segmentID = "segment_id" case categories } @@ -59,7 +59,7 @@ public struct RemoteSiteDesign: Codable { mobileScreenshot = try? map.decode(String.self, forKey: .mobileScreenshot) tabletScreenshot = try? map.decode(String.self, forKey: .tabletScreenshot) themeSlug = try? map.decode(String.self, forKey: .themeSlug) - groups = try? map.decode([String].self, forKey: .groups) + group = try? map.decode([String].self, forKey: .group) segmentID = try? map.decode(Int64.self, forKey: .segmentID) categories = try map.decode([RemoteSiteDesignCategory].self, forKey: .categories) }