Kong / Kong/insomnia

Latest version breaks ability to address objects declared in Enviroment

Open
#2,281 2 comments 0 reactions 0 assignees View on GitHub
B-bug needs-triage
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

**Describe the bug**
With version 2020.2.2 can't access objects in arrays

{
"test": [
{
"a": 1
},
{
"b": 1
}
],
"aa": {{ test[0].a }},

**To Reproduce**
Steps to reproduce the behavior:
1. Declare an object in Base Environment with array of objects
2. Refer to it in the body of a request or in the environment
3. Not possible to refer to a property of this object

**Expected behavior**
This was working in version 7.1.x

**Screenshots**
attached

**Desktop (please complete the following information):**
- OS: Windows 10
- Installation Method: .exe
- App Version [e.g. v2020.2.2]

**Additional context**
![Insomnia_issues_objects](https://user-images.githubusercontent.com/6484975/84396873-27297b80-ac07-11ea-94f8-ce8b692b3adc.jpg)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using a Base Environment value containing an array of objects, then reference a nested property such as {{ test[0].a }} in a request or environment. Compare the behavior with version 7.1.x and confirm that array-object properties can again be addressed in version 2020.2.2 and later.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.