We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfc14e3 + 878c231 commit 82fdfc1Copy full SHA for 82fdfc1
Sources/Contentful/RichText.swift
@@ -405,6 +405,12 @@ public class ResourceLinkInline: InlineNode {
405
try super.init(from: decoder)
406
}
407
408
+ public override func encode(to encoder: Encoder) throws {
409
+ try super.encode(to: encoder)
410
+ var container = encoder.container(keyedBy: NodeContentCodingKeys.self)
411
+ try container.encode(data, forKey: .data)
412
+ }
413
+
414
public override func resolveLinks(against includedEntries: [String: Entry], and includedAssets: [String: Asset]) {
415
switch data.target {
416
case .asset, .entry, .entryDecodable:
0 commit comments