From c10faa2ee50da0d5081210ce5a5c9d758846f49a Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 15 Jun 2026 10:09:36 -0400 Subject: [PATCH] fix(dotnet): use hasChildrenHint JSON key for browse cross-client parity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the anonymous-object member `hasChildren` → `hasChildrenHint` so the serialized JSON key matches the Rust and Python CLIs and the library property HasChildrenHint. Also update the text-output suffix to `hasChildrenHint=` for consistency. --- .../ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs index 1c3cfc7..0578372 100644 --- a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs +++ b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs @@ -1844,7 +1844,7 @@ public static class MxGatewayClientCli string indent = new(' ', level * 2); string suffix = hasChildrenHint is null ? $"(attrs={galaxyObject.Attributes.Count})" - : $"(attrs={galaxyObject.Attributes.Count}, hasChildren={hasChildrenHint.Value})"; + : $"(attrs={galaxyObject.Attributes.Count}, hasChildrenHint={hasChildrenHint.Value})"; return $"{indent}{galaxyObject.GobjectId}\t{galaxyObject.TagName}\t{galaxyObject.BrowseName}\t{suffix}"; } @@ -1853,7 +1853,7 @@ public static class MxGatewayClientCli return new { @object = GalaxyObjectToJsonElement(node.Object), - hasChildren = node.HasChildrenHint, + hasChildrenHint = node.HasChildrenHint, children = node.Children.Select(BrowseTreeNodeToJson).ToArray(), }; }