Display issue with hashtable: only the first field is shown and if it's null it looks like it's empty #19354
Labels
Issue-Enhancement
the issue is more of a feature request than a bug
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Engine-Format
Prerequisites
Steps to reproduce
Run these commands:
In the first command output, it looks like the
KeyCredentialsis empty whereas it isn't. I think it's because it shows its first field,Key, which is$nullBut this is surprising in my opinion, and it led me to thinking there was a bug in the Microsoft Graph PowerShell SDK whereas there wasn't any: microsoftgraph/msgraph-sdk-powershell#1849
The second command is a more normal case, and its output looks more natural to me.
Expected behavior
Actual behavior
Workaround
Instead of using
| select, if I access the property directly the hashtable output is clearer:Error details
NoneEnvironment data
Visuals
No response
The text was updated successfully, but these errors were encountered: