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
I have a custom method that takes a required boolean and number type arguments. The generated sdk creates urlParams like this "if(argX) _urlParams.argX = argX". So when I pass 0s (or FALSEs) to argX, they are not getting added to urlParams resulting in 400 Errors. Should the check be rather for undefined or null rather than like this: if (typeof argX !== 'undefined' && argX !== null) _urlParams.argX = argX
The text was updated successfully, but these errors were encountered:
Hi, thanks for the updates. This is marked closed, but rc.9 still produces urlParams like below:
if (${param.arg}) _urlParams.${param.arg} = ${param.arg};
So, it the value passed is a 0 or false, the parameter is still not attached.
What type of issue are you creating?
What version of this module are you using?
Write other if any:
Please add a description for your issue:
I have a custom method that takes a required boolean and number type arguments. The generated sdk creates urlParams like this "if(argX) _urlParams.argX = argX". So when I pass 0s (or FALSEs) to argX, they are not getting added to urlParams resulting in 400 Errors. Should the check be rather for undefined or null rather than like this: if (typeof argX !== 'undefined' && argX !== null) _urlParams.argX = argX
The text was updated successfully, but these errors were encountered: