Closed haoxins closed 2 months ago
optimize
en:
If we have the binding or params definition:
type Params struct { AccId string `query:"accountId,required" }
The current error message will be:
"'AccId' field is a 'required' parameter, but the request does not have this parameter"
This will be confused for the API caller.
The error message will be
"'accountId' field is a 'required' parameter, but the request does not have this parameter"
with this change.
zh(optional):
可以看看其他地方的 Required 校验是否也有类似的 case,可以一并修改
done
What type of PR is this?
optimize
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
If we have the binding or params definition:
The current error message will be:
This will be confused for the API caller.
The error message will be
with this change.
zh(optional):
(Optional) Which issue(s) this PR fixes:
(Optional) The PR that updates user documentation: