You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a validation error happens, I would like to know the location of the parameter. e.g.header, query, path, body.
Also I would like the context.key to have the right key name instead of 'value'.
The desired result would contain the parameter location under context.location and the right key name under context.key. I've done a local experiment and achieved the desired results by adding this after L129 of lib/validator.js:
If a validation error happens, I would like to know the location of the parameter. e.g.
header
,query
,path
,body
.Also I would like the
context.key
to have the right key name instead of'value'
.The desired result would contain the parameter location under
context.location
and the right key name undercontext.key
. I've done a local experiment and achieved the desired results by adding this after L129 of lib/validator.js:Please let me know what do you think. I hope to be making a related PR soon. 😄
The text was updated successfully, but these errors were encountered: