From f4d081c1ee9bf8bd675d3557e041a06c510389b2 Mon Sep 17 00:00:00 2001 From: Maya Epps <53411851+mayaepps@users.noreply.github.com> Date: Wed, 19 Nov 2025 10:44:49 -0800 Subject: [PATCH] RenderIndex.Node accepts an optional type (#1360) 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. Co-authored-by: Pat Shaughnessy --- 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,