From 5ac3b81f6d20051afc0d6492f9224ad9aff2ba84 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 21 Nov 2019 21:34:25 +0100 Subject: [PATCH] parameter name conflict: on rename conflicting rename, return original name --- internal/config/method.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/method.go b/internal/config/method.go index 1cb2a02..5131fdc 100644 --- a/internal/config/method.go +++ b/internal/config/method.go @@ -40,7 +40,7 @@ func (methodDef *Method) checkAndFormat(servicePath string, httpMethod string) e // 3.2.1. Same rename field if pData.Rename == param.Rename { - return ErrParamNameConflict.WrapString(httpMethod + " " + servicePath + " {" + pData.Rename + "}") + return ErrParamNameConflict.WrapString(httpMethod + " " + servicePath + " {" + pName + "}") } // 3.2.2. Not-renamed field matches a renamed field