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

Commit 1ecf67f

Browse files
committed
Make CodingKeys private
1 parent 09a00e2 commit 1ecf67f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WordPressKit/Insights/StatsAllAnnualInsight.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public struct StatsAllAnnualInsight: Codable {
55
self.allAnnualInsights = allAnnualInsights
66
}
77

8-
enum CodingKeys: String, CodingKey {
8+
private enum CodingKeys: String, CodingKey {
99
case allAnnualInsights = "years"
1010
}
1111
}

WordPressKit/Insights/StatsAnnualAndMostPopularTimeInsight.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public struct StatsAnnualAndMostPopularTimeInsight: Codable {
88
public let mostPopularHourPercentage: Int
99
public let years: [Year]?
1010

11-
enum CodingKeys: String, CodingKey {
11+
private enum CodingKeys: String, CodingKey {
1212
case mostPopularHour = "highest_hour"
1313
case mostPopularHourPercentage = "highest_hour_percent"
1414
case mostPopularDayOfWeek = "highest_day_of_week"
@@ -28,7 +28,7 @@ public struct StatsAnnualAndMostPopularTimeInsight: Codable {
2828
public let totalImages: Int
2929
public let averageImages: Double
3030

31-
enum CodingKeys: String, CodingKey {
31+
private enum CodingKeys: String, CodingKey {
3232
case year
3333
case totalPosts = "total_posts"
3434
case totalWords = "total_words"

0 commit comments

Comments
 (0)