We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cfffc commit bbfabffCopy full SHA for bbfabff
test/Atc.Rest.ApiGenerator.OpenApi.Tests/Extensions/OpenApiPathItemExtensionsTests.cs
@@ -108,6 +108,12 @@ public void ExtractApiPathAuthorization(
108
},
109
};
110
111
+ if (expectedUseAllowAnonymous is null)
112
+ {
113
+ apiPath.Extensions.Remove(SecurityExtensionNameConstants.AuthenticationRequired);
114
+ apiPath.Operations.Values.First().Extensions.Remove(SecurityExtensionNameConstants.AuthenticationRequired);
115
+ }
116
+
117
// Act
118
var result = apiPath.ExtractApiPathAuthorization();
119
0 commit comments