Skip to content

Commit 2ec0688

Browse files
committed
Replace obsolete ApiGenerator option
1 parent 85e13a4 commit 2ec0688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.OpenApi.Tests/PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void ReviewPublicApiChanges()
2626
// It takes a human to read the change, determine if it is breaking and update the PublicApi.approved.txt with the new approved API surface
2727

2828
// Arrange
29-
var publicApi = typeof(OpenApiSpecVersion).Assembly.GeneratePublicApi(new ApiGeneratorOptions() { WhitelistedNamespacePrefixes = new[] { "Microsoft.OpenApi" } } );
29+
var publicApi = typeof(OpenApiSpecVersion).Assembly.GeneratePublicApi(new ApiGeneratorOptions() { AllowNamespacePrefixes = new[] { "Microsoft.OpenApi" } } );
3030

3131
// Act
3232
var approvedFilePath = Path.Combine("PublicApi", "PublicApi.approved.txt");

0 commit comments

Comments
 (0)