Array/List values are not resolved as expected
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Reproduce the issue by creating an input/output mapping with FEEL expressions and the value ["1", 1, { "test": { "sample": 123 } }]. Inspect the variable-resolver output against the expected List type, isList flag, and preserved entries; done means all values and nested schema are resolved without omissions.
Written by the indexing model from the issue text.
Description
Describe the Bug
Array/List values are not resolved as expected. Currently, a variable with a value of ["1", 1, { "test": { "sample": 123 } }] is resolved as below.
The problems I can observe;
typeisContext, but should have beenList- First two entries that are
"1"and1are omitted, but should have been preserved and resolved accordingly isListflag is missing
{
"name": "arrayValue",
"provider": [
null
],
"type": "Context",
"info": "",
"entries": [
{
"entries": [
{
"atomicValue": 123,
"entries": [],
"type": "Number",
"info": "123",
"name": "sample",
"detail": "Number"
}
],
"type": "Context",
"info": "",
"name": "test",
"detail": "Context"
}
],
"detail": "Context"
}
Steps to Reproduce
- Create an input/output mapping
- Enable FEEL expressions
- Provide a value like
["1", 1, { "test": { "sample": 123 } }]
Expected Behavior
variable-resolver resolves this variable with type=List and isList=true (?) and its entries accordingly without omitting sub-values and their schema.
Environment
- Library version: main, cover-null-variable-type
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 8h 41m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bpmn-io/variable-resolver
-
backlog bug
bpmn-io/variable-resolver#109 · 1 assignee ·
-
backlog bug spring cleaning
Difficulty 3/5 1-2 days Newbie friendliness 45/100
bpmn-io/variable-resolver#100 ·
-
backlog bug
bpmn-io/variable-resolver#87 · 1 comment · 1 assignee ·
-
backlog enhancement
bpmn-io/variable-resolver#31 · 1 assignee ·
-
backlog
bpmn-io/variable-resolver#4 · 3 comments · 1 assignee ·
All issues in bpmn-io/variable-resolver
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
antfu-collective/icones#398 ·
-
ECmail.com Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
wesbos/burner-email-providers#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
components-web-app/docs#92 ·