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 e65b484 commit ad775b2Copy full SHA for ad775b2
test/Microsoft.OpenApi.Tests/Services/OpenApiUrlTreeNodeTests.cs
@@ -466,5 +466,23 @@ public async Task VerifyDiagramFromSampleOpenAPI()
466
467
await Verifier.Verify(diagram);
468
}
469
+
470
+ [Fact]
471
+ public void SupportsTrailingSlashesInPath()
472
+ {
473
+ var openApiDocument = new OpenApiDocument
474
475
+ Paths = new()
476
477
+ ["/cars/{car-id}/build/"] = new()
478
+ }
479
+ };
480
481
+ var label1 = "trailing-slash";
482
+ var rootNode = OpenApiUrlTreeNode.Create(openApiDocument, label1);
483
+ var buildNode = rootNode.Children["cars"].Children["{car-id}"].Children["build"];
484
485
+ // Should buildNode have a path of "build/" or should it have a child with an empty string key?
486
487
488
0 commit comments