Description
Coming from microsoft/kiota#4291
Is your feature request related to a problem? Please describe.
We're working with an API which endpoints end with trailing slashes, for example /api/v1/app/{app_id}/msg/
.
See the OpenAPI document at https://github.com/svix/svix-webhooks/blob/8d32e47e0484f5d0839bce364d8700d2c7457937/openapi.json#L7779.
We're using Kiota to generate a .NET client for this API, and the generated client doesn't contain the trailing slashes (see the issue at the top for more details).
While we agree it's not common to have trailing slashes, apparently it's supported according to the relevant RFCs.
Describe the solution you'd like
OpenAPI.NET should respect the OpenAPI path when building out the OpenApiUrlTreeNode
tree.
Describe alternatives you've considered
N/A.
Additional context
I've forked the repo and pushed a branch which shows how the trailing slash is removed, see https://github.com/microsoft/OpenAPI.NET/compare/vnext...mderriey:OpenAPI.NET:mderriey/support-trailing-slashes?expand=1.
I haven't opened a PR yet because it might be too much noise given it's not actionable as-is.