You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle JSON comments and trailing commas in user-jwts (#54826)
* Handle JSON comments and trailing commas
Handle the presence of comments and trailing commas in JSON files processed by user-jwts.
Also fixes up some of the IDE suggestions found while making the change.
Resolves#54814.
* Use one JsonSerializerOptions
Use a shared static customised `JsonSerializerOptions` instance.
* Rename to JwtSerializerOptions
Address feedback.
@@ -593,7 +619,7 @@ public void Create_CanHandleNoProjectOptionProvided_WithNoProjects()
593
619
Directory.SetCurrentDirectory(path.FullName);
594
620
595
621
varapp=newProgram(_console);
596
-
app.Run(new[]{"create"});
622
+
app.Run(["create"]);
597
623
598
624
Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.",_console.GetOutput());
@@ -606,7 +632,7 @@ public void Delete_CanHandleNoProjectOptionProvided_WithNoProjects()
606
632
Directory.SetCurrentDirectory(path.FullName);
607
633
608
634
varapp=newProgram(_console);
609
-
app.Run(new[]{"remove","some-id"});
635
+
app.Run(["remove","some-id"]);
610
636
611
637
Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.",_console.GetOutput());
612
638
}
@@ -618,7 +644,7 @@ public void Clear_CanHandleNoProjectOptionProvided_WithNoProjects()
618
644
Directory.SetCurrentDirectory(path.FullName);
619
645
620
646
varapp=newProgram(_console);
621
-
app.Run(new[]{"clear"});
647
+
app.Run(["clear"]);
622
648
623
649
Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.",_console.GetOutput());
624
650
}
@@ -630,7 +656,7 @@ public void List_CanHandleNoProjectOptionProvided_WithNoProjects()
630
656
Directory.SetCurrentDirectory(path.FullName);
631
657
632
658
varapp=newProgram(_console);
633
-
app.Run(new[]{"list"});
659
+
app.Run(["list"]);
634
660
635
661
Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.",_console.GetOutput());
636
662
}
@@ -669,7 +695,6 @@ public void Create_CanHandleRelativePathAsOption()
0 commit comments