Skip to content

Commit 221a546

Browse files
Fix test
Fix for different TFMs.
1 parent 8f737c1 commit 221a546

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerIntegrationTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ public async Task SwaggerEndpoint_ReturnsCorrectPriceExample_ForDifferentCulture
9696
[Theory]
9797
[InlineData("/swagger/v1/swagger.json", "openapi", "3.0.4")]
9898
[InlineData("/swagger/v1/swaggerv2.json", "swagger", "2.0")]
99+
#if NET11_0_OR_GREATER
99100
[InlineData("/swagger/v1/swaggerv3_1.json", "openapi", "3.1.2")]
101+
#else
102+
[InlineData("/swagger/v1/swaggerv3_1.json", "openapi", "3.1.1")]
103+
#endif
100104
public async Task SwaggerMiddleware_CanBeConfiguredMultipleTimes(
101105
string swaggerUrl,
102106
string expectedVersionProperty,

0 commit comments

Comments
 (0)