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
Hi!
It turns out that since we use the str callable to convert a value to string, the output of str([True, 1, 'hi']) would be "[True, 1, 'hi']" instead of the json values '[true, 1, "hi"]'. This forces the user to convert data to string before sending it to our client instead of sending it as regular python types, which could be solved using json.dumps instead of str for this purpose.
The text was updated successfully, but these errors were encountered:
Can you add a link to the code where this is being done as well? Would make it easy for anyone to make a fix PR 😄 (unless you were planning on making one yourself)
I'm unfortunately not using my laptop rn, can you add it for me @anand2312? It is the first line of sanitize_params function, which can be found by searching the function name.
Hi!
It turns out that since we use the
str
callable to convert a value to string, the output ofstr([True, 1, 'hi'])
would be"[True, 1, 'hi']"
instead of the json values'[true, 1, "hi"]'
. This forces the user to convert data to string before sending it to our client instead of sending it as regular python types, which could be solved usingjson.dumps
instead ofstr
for this purpose.The text was updated successfully, but these errors were encountered: