From 3dfcdf130f53da067eee7d641ccaff2df15060e9 Mon Sep 17 00:00:00 2001 From: IanWold Date: Sun, 13 Oct 2024 21:49:06 -0500 Subject: [PATCH] Log topics object type --- build.csx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.csx b/build.csx index c5ada83..754a4bf 100644 --- a/build.csx +++ b/build.csx @@ -153,8 +153,11 @@ new MetalsharpProject() } } - if (post.Metadata.TryGetValue("topics", out var topicsObject) && topicsObject is JsonElement topicNamesElement) + if (post.Metadata.TryGetValue("topics", out var topicsObject)) { + Console.WriteLine(typeof(topicsObject).FullName()); + if (topicsObject is JsonElement topicNamesElement) + { foreach (var topicNameElement in topicNamesElement.EnumerateArray()) { var topicName = topicNameElement.GetString(); @@ -167,6 +170,7 @@ new MetalsharpProject() topicPosts.Add(topicName, [ post.Metadata ]); } } + } } }