Skip to content

Commit

Permalink
Fix the issue that UXMetadata generate null in example.parameters (Az…
Browse files Browse the repository at this point in the history
  • Loading branch information
wyunchi-ms authored Oct 29, 2024
1 parent f78468a commit 90206f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/StaticAnalysis/UXMetadataAnalyzer/UXMetadataAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ private void ValidateMetadata(IssueLoggerContext context, string UXMetadataConte

private void ValidateExample(IssueLoggerContext context, UXMetadataCommand command, CmdletMetadata cmdletMetadata, UXMetadataCommandExample example, ReportLogger<UXMetadataIssue> issueLogger)
{
if (example.Parameters == null)
{
return;
}
List<string> parameterListConvertedFromAlias = example.Parameters.Select(x =>
{
string parameterNameInExample = x.Name.Trim('-');
Expand Down

0 comments on commit 90206f7

Please sign in to comment.