Array support in environment variables #3546
Replies: 9 comments 11 replies
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
Aren't environment variables only ever allowed to be strings? see: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html I'm sorta thinking that we shouldn't allow the current behavior, actually. |
Beta Was this translation helpful? Give feedback.
-
Could you say more about your use-case? Is |
Beta Was this translation helpful? Give feedback.
-
re:
I apologize. We're doing our best to go through every issue and get caught up. Thanks for helping explain your recollection of it! |
Beta Was this translation helpful? Give feedback.
-
I came here looking for the same thing. I have an array of "region_codes" which is used in a filter when making a POST request. I want to be able to reuse this across requests but cannot find a way to do so currently. When adding it as a environment variable I can only reference the individual elements, not the whole array. |
Beta Was this translation helpful? Give feedback.
-
I came here for the same feature request! In my case I'm using an array of account identifiers, group identifiers and subgroup identifiers. These are produced by the backend and specific to each user! I think it would be amazing have a quick access menu so that after I get the response from the API, I can see the environment variables that are loaded and select which array element I want to work with on the other endpoints! |
Beta Was this translation helpful? Give feedback.
-
I came here for the same thing. I would really like to reference a whole array defined as an environment variable and not just specific elements of the array. This would be useful for making requests where one of the request parameters is a list of strings. |
Beta Was this translation helpful? Give feedback.
-
Any update on adding this feature? I think it would be greatly appreciated @dimitropoulos |
Beta Was this translation helpful? Give feedback.
-
I came here for the same thing. I want to use a full array when sending an API request and avoid specifying each elements. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Yes, I can't directly reference the defined array in the environment variables. Instead of directly referencing the array, we can only reference the elements of the array like in the example below.
Insomnia dosen't let me to use the
instances
array directly, instead of it serves the elements of the array likeistances[0]
,istances[1]
,istances[2]
Describe the solution you'd like
Make it possible to directly reference the arrays, instead of pointing the elements of the array.
Beta Was this translation helpful? Give feedback.
All reactions