From 94e15875da32fb679154920a6ca61b74b3c062bd Mon Sep 17 00:00:00 2001 From: Joseph Duffy <1325813+JosephDuffy@users.noreply.github.com> Date: Sun, 14 Jun 2026 05:22:14 -0700 Subject: [PATCH] Encoding item elements after all of the other elements Matching the recommendation in https://validator.w3.org/feed/docs/warning/MisplacedItem.html. --- Sources/FeedKit/Feeds/RSS/RSSFeedChannel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FeedKit/Feeds/RSS/RSSFeedChannel.swift b/Sources/FeedKit/Feeds/RSS/RSSFeedChannel.swift index 1f05dce..cf38c42 100644 --- a/Sources/FeedKit/Feeds/RSS/RSSFeedChannel.swift +++ b/Sources/FeedKit/Feeds/RSS/RSSFeedChannel.swift @@ -410,11 +410,11 @@ extension RSSFeedChannel: Codable { try container.encodeIfPresent(textInput, forKey: CodingKeys.textInput) try container.encodeIfPresent(skipHours, forKey: CodingKeys.skipHours) try container.encodeIfPresent(skipDays, forKey: CodingKeys.skipDays) - try container.encodeIfPresent(items, forKey: CodingKeys.item) try container.encodeIfPresent(dublinCore, forKey: CodingKeys.dublinCore) try container.encodeIfPresent(iTunes, forKey: CodingKeys.iTunes) try container.encodeIfPresent(syndication, forKey: CodingKeys.syndication) try container.encodeIfPresent(atom, forKey: CodingKeys.atom) try container.encodeIfPresent(podcast, forKey: CodingKeys.podcast) + try container.encodeIfPresent(items, forKey: CodingKeys.item) } }