rivet icon indicating copy to clipboard operation
rivet copied to clipboard

[Bug]: Code node coerces array inputs into a string

Open hotelbuddy-online opened this issue 1 year ago • 1 comments

What happened?

when using code node, it seems to change the type of the input when it is an array. a workaround is to convert into an object which is an array, but this seems irregular

What was the expected functionality?

the input node should have same data type as what goes into it.

Describe your environment

MacOS, Node 14.0.0, etc.

Relevant log output

No response

Relevant screenshots

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

hotelbuddy-online avatar Jan 15 '24 10:01 hotelbuddy-online

@hotelbuddy-online could you give more info about the input you're providing to the code node? It doesn't intentionally change the input type to anything in particular (no coercion), can you provide a minimal reproduction?

abrenneke avatar Jan 17 '24 20:01 abrenneke

feel free to reopen if you have more info

abrenneke avatar Aug 01 '24 18:08 abrenneke