I'm noticing that the allowedValues that are available to the template in the different route params seem to just contain an array of 1 item that appears to be a stringified Array of the allowed values.
My question is, is this intended behavior?
For example, if I have config for a route that looks like this:
I'm noticing that the
allowedValues
that are available to the template in the different route params seem to just contain an array of 1 item that appears to be a stringified Array of the allowed values.My question is, is this intended behavior?
For example, if I have config for a route that looks like this:
Then the
allowedValues
property ofpayloadParams
on the route object in the template returns this value:instead of:
So ultimately, I can't easily loop through each value.
If this was not intentional, I can submit a fix. Thanks!