parameter name conflict: on rename conflicting rename, return original name

This commit is contained in:
Adrien Marquès 2019-11-21 21:34:25 +01:00
parent 4accad7286
commit 5ac3b81f6d
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (methodDef *Method) checkAndFormat(servicePath string, httpMethod string) e
// 3.2.1. Same rename field // 3.2.1. Same rename field
if pData.Rename == param.Rename { 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 // 3.2.2. Not-renamed field matches a renamed field