From e20f9d8c7b25d6558eca5767bc9769da62569c8c Mon Sep 17 00:00:00 2001 From: Waldek Mastykarz Date: Mon, 18 Dec 2023 17:53:46 +0100 Subject: [PATCH] Fixes issue with parametrizing URLs in OpenApiDocGeneratorPlugin (#433) Co-authored-by: Garry Trinder --- dev-proxy-plugins/RequestLogs/OpenApiDocGeneratorPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-proxy-plugins/RequestLogs/OpenApiDocGeneratorPlugin.cs b/dev-proxy-plugins/RequestLogs/OpenApiDocGeneratorPlugin.cs index 4425fd3f..1d740837 100644 --- a/dev-proxy-plugins/RequestLogs/OpenApiDocGeneratorPlugin.cs +++ b/dev-proxy-plugins/RequestLogs/OpenApiDocGeneratorPlugin.cs @@ -351,7 +351,7 @@ private string ParametrizePath(OpenApiPathItem pathItem, Uri requestUri) if (IsParametrizable(segment)) { var parameterName = $"{previousSegment}-id"; - segments[i] = "{" + parameterName + "}"; + segments[i] = "{" + parameterName + "}/"; pathItem.Parameters.Add(new OpenApiParameter {