Closed alvaroinckot closed 2 years ago
@icebob Do you think that is a good idea to modify the parseQueryString method? I can try do something there
No, the parse method works well, you should change the params
validators in mult
action as adding convert: true
. In this case, validator will convert the string values to number and won't throw validation error.
Following the sample math.service.js and calling it http://0.0.0.0:3000/math/mult?a=1&b=2 returns a validation error:
Node version: 16.13.1 Moleculer: 0.14.19 Moleculer Web: 0.10.4