How to Enforce an Array of Integers within Props as it's Not Working?

This topic was automatically generated from Slack. You can find the original thread here.

Is there a way to enforce an array of integers within props?

    stages: {
      type: "integer[]",
      label: "Stages",
      optional: true,
    }

is not working

Hm we might only support string arrays

Actually our docs say we should support integer arrays also. Did you define the options?

https://pipedream.com/docs/components/api

Might need default: []

This worked for me, what wasn’t working for you?

Screenshot by Dropbox Capture.png

It returns a string. Trying console.log(typeof this.ints)

Ohh, I see

That sounds like a bug. Do you only see that with integer[] and not integer?

integer returns a single integer, yes, but integer[] returns a string

Thanks, Mike. I see that too and am flagging to eng.