From 2fadc5df9445b3c0cb184de53a22fe51ee2d15ec Mon Sep 17 00:00:00 2001 From: Maya Epps Date: Tue, 18 Nov 2025 16:37:57 -0800 Subject: [PATCH] RenderIndex.Node accepts an optional type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since RenderIndex.Node’s type property is optional, the public initializer should accept an optional. --- Sources/SwiftDocC/Indexing/RenderIndexJSON/RenderIndex.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftDocC/Indexing/RenderIndexJSON/RenderIndex.swift b/Sources/SwiftDocC/Indexing/RenderIndexJSON/RenderIndex.swift index 7b228244bb..19e4d476c8 100644 --- a/Sources/SwiftDocC/Indexing/RenderIndexJSON/RenderIndex.swift +++ b/Sources/SwiftDocC/Indexing/RenderIndexJSON/RenderIndex.swift @@ -223,7 +223,7 @@ extension RenderIndex { public init( title: String, path: String?, - type: String, + type: String?, children: [Node]?, isDeprecated: Bool, isExternal: Bool,