Shortcuts not fully supporting a custom type?

1) Create custom type

2) Create custom intent that outputs array of custom type

3) Create custom intent that takes array of custom type as input

4) Try to use the magic variable of 2) in 3), says it could not be converted.


No resolve methods are fired in order to try handle the input, works for single input/output custom types fine but not arrays? Anyone else experiencing this issue?


I've had to change the input of 3) to a single custom type instead, and hope that the user finds the "Repeat for each" script.


Other strange custom type issues:

1) When tapping the ℹ info button next to the custom intents, the result is shown as "Custom Type", even if the output is an array or single custom type. Should this not be distinguished for the user in some way? I can't seem to find a way to change this text.

2) After changing the intent to accept only a single, not an array, of custom types, it's still possible to supply an array as input. The result is that only the first item of the array will be actioned on. This is rather confusing behaviour, it would be nice if it automatically "for-each"d each result in this case? Or prompt the user if this is their intention.

Replies

Nevermind, I didn't realise that the App Store version of Xcode is running 13.0, installing the 13.1 beta and running there this works as expected. And given that 13.1 is coming out in 2 days, guess I was worried over nothing 😝